Add tests for subworkflows -II#782
Conversation
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.5.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
| "content": [ | ||
| { | ||
| "0": [ | ||
|
|
||
| ], | ||
| "1": [ | ||
|
|
||
| ], | ||
| "tbi": [ | ||
|
|
||
| ], | ||
| "vcf": [ | ||
|
|
||
| ] | ||
| } | ||
| ], |
There was a problem hiding this comment.
Looks empty. Is this intended?
There was a problem hiding this comment.
Good catch! Fixed
|
|
||
| withName: 'CADD' { | ||
| container = "nf-core/ubuntu:22.04" //Using an basic container because v1.7.3 is too big for CI. | ||
| ext.args = { "-g ${params.genome}" } |
There was a problem hiding this comment.
I don't see params.genome in the main.nf.test
| .join(TABIX_CADD.out.index) | ||
| .set { ch_annotate_in } | ||
|
|
||
| BCFTOOLS_ANNOTATE(ch_annotate_in, [], ch_header.map { _meta, header -> header }, ch_rename_chrs) |
There was a problem hiding this comment.
Saw they changed the inputs in the latest nf-core module.
There was a problem hiding this comment.
Updated the module and related workflows
There was a problem hiding this comment.
Should be possible with a real test here, right? Except for cadd.
| .map { it -> it + [[]] } | ||
| .combine(ch_foundin_header) | ||
| .map { it -> it + [[]] } |
There was a problem hiding this comment.
I would use something more verbose than it.
|
|
||
| BCFTOOLS_MERGE(ch_vcf_idx_merge_in.multiple, ch_genome_fasta, ch_genome_fai, [[:],[]]) | ||
| BCFTOOLS_MERGE( | ||
| ch_vcf_idx_merge_in.multiple.map { it -> it + [[]] }, |
| .map { it -> it + [[]] } | ||
| .combine(ch_foundin_header) | ||
| .map { it -> it + [[]] } |
| [[:],[]] | ||
| BCFTOOLS_MERGE_MT( | ||
| ch_case_vcf.multiple.map { it -> it + [[]] }, | ||
| ch_genome_fasta.join(ch_genome_fai, failOnMismatch:true, failOnDuplicate:true) |
There was a problem hiding this comment.
Do you only run this process once, or do you need a .collect() after the join?
| BCFTOOLS_MERGE(ch_vcf_idx_merge_in.multiple, ch_genome_fasta, ch_genome_fai, [[:],[]]) | ||
| BCFTOOLS_MERGE( | ||
| ch_vcf_idx_merge_in.multiple.map { it -> it + [[]] }, | ||
| ch_genome_fasta.join(ch_genome_fai, failOnMismatch:true, failOnDuplicate:true) |
There was a problem hiding this comment.
Do you only run this process one, or do you need a .collect() after the join?
fellen31
left a comment
There was a problem hiding this comment.
Nice, if you could change the last its as well that would be great.
| .map { it -> it + [[]] } | ||
| .combine(ch_foundin_header) | ||
| .map { it -> it + [[]] } |
There was a problem hiding this comment.
Perhaps you could change these its as well.
| ch_genome_fai, | ||
| [[:],[]] | ||
| BCFTOOLS_MERGE_MT( | ||
| ch_case_vcf.multiple.map { it -> it + [[]] }, |
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile test_singleton,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).