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
| normalize = true | ||
| compute_freq = false | ||
| phase = false | ||
| chunk_version = "V2" |
There was a problem hiding this comment.
Can you update usage.md to document these new changes, please? Thank you :)
| 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
| 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.
| if (row.size() == 8) { | ||
| return [ meta, row[3], row[2] ] // header is 'ID', 'Chr', 'RegionBuff', 'RegionCnk', 'WindowCm', 'WindowMb', 'NbTotVariants', 'NbComVariants' | ||
| } | ||
| error "Chunks csv should have either 6 columns (glimpse V1 format) or 8 columns (glimpse V2 format)" |
There was a problem hiding this comment.
This should also be documented in usage.md
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).