Open
Conversation
This was referenced Mar 21, 2026
famosab
reviewed
Apr 8, 2026
Contributor
famosab
left a comment
There was a problem hiding this comment.
Looks good a few comments
Contributor
There was a problem hiding this comment.
This file should not be needed
| @@ -0,0 +1,55 @@ | |||
| process REGENIE_STEP1 { | |||
| tag "${meta.id}:${meta2.pheno_col}" | |||
Contributor
There was a problem hiding this comment.
Suggested change
| tag "${meta.id}:${meta2.pheno_col}" | |
| tag "${meta.id}" |
| val(bsize) | ||
|
|
||
| output: | ||
| tuple val(meta2), path("*_pred.list"), path("*.loco.gz"), emit: predictions |
|
|
||
| output: | ||
| tuple val(meta2), path("*_pred.list"), path("*.loco.gz"), emit: predictions | ||
| tuple val(meta2), path("*.log"), emit: log |
Contributor
There was a problem hiding this comment.
Suggested change
| tuple val(meta2), path("*.log"), emit: log | |
| tuple val(meta), path("*.log"), emit: log |
| def genotype_flag = plink_genotype_file.name.endsWith('.pgen') ? '--pgen' : '--bed' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def bsize_arg = bsize ?: 1000 | ||
|
|
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| touch ${prefix}_pred.list | ||
| printf '' | gzip > ${prefix}_1.loco.gz |
Contributor
There was a problem hiding this comment.
Suggested change
| printf '' | gzip > ${prefix}_1.loco.gz | |
| echo | gzip > ${prefix}_1.loco.gz |
| output: | ||
| tuple val(meta2), path("*_pred.list"), path("*.loco.gz"), emit: predictions | ||
| tuple val(meta2), path("*.log"), emit: log | ||
| tuple val("${task.process}"), val('regenie'), eval("regenie --version 2>&1 | head -n 1"), topic: versions, emit: versions_regenie |
Contributor
There was a problem hiding this comment.
Suggested change
| tuple val("${task.process}"), val('regenie'), eval("regenie --version 2>&1 | head -n 1"), topic: versions, emit: versions_regenie | |
| tuple val("${task.process}"), val('regenie'), eval("regenie --version | head -n 1"), topic: versions, emit: versions_regenie |
Contributor
There was a problem hiding this comment.
and please update the statement so only the bare version ends up in the output
in this case 4.1.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the
regenie/step1module, which runs REGENIE Step 1 whole-genome regression to fit LOCO ridge models for downstream association testing workflows.Merge dependencies: none. This PR is self-contained and does not require any other split REGENIE PR to merge first.
PR checklist
topic: versions- See version_topicslabelnf-core modules test regenie/step1 --profile dockernf-core modules test regenie/step1 --profile singularitynf-core modules test regenie/step1 --profile conda