Add parameter glimpse version - #308
Conversation
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 4.0.3. For more documentation on how to update your pipeline, please see the Synchronisation documentation. |
|
❌ nf-test failed with latest Nextflow versionNote Tests with Nextflow's latest version failed but it will not cause a CI workflow failure.
See the full run for details. |
atrigila
left a comment
There was a problem hiding this comment.
Nice work! Just some comments
| compute_freq : params.compute_freq, | ||
| phase : params.phase, | ||
| chunk_model : params.chunk_model | ||
| chunk_model : params.chunk_model, |
There was a problem hiding this comment.
Chunk model won't apply to both v1 and v2, right? Should we have a warning if you provide a v2 model and request a v1 version?
There was a problem hiding this comment.
Maybe a test case can be added to cover for this scenario as well
There was a problem hiding this comment.
We were providing the default sequential model for glimpse2.
So I added a error message if the model provided is different to the default when V1 is selected.
We could also set --chunk_model to null and give an error when V2 is selected with no model.
| GLIMPSE2_CHUNK(ch_input_glimpse2, chunk_model) | ||
| ch_chunks = GLIMPSE2_CHUNK.out.chunk_chr | ||
| } else { | ||
| error ("Parameter chunk_version should be V1 or V2, found: ${chunk_version}.") |
There was a problem hiding this comment.
I think this is not needed since it should fail before this if a different one is provided. It should fail and error due to the schema which only allows enums.
There was a problem hiding this comment.
I agree, that it should already failed thanks to nextflow.schema.
But, if a some point we share this subworkflow, I'd prefer that it verify that the format is correct.
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).