Skip to content

Commit 6532e74

Browse files
authored
Merge pull request #711 from maxibor/dev
Fix condition preventing to run multivcfanalyzer
2 parents ebbb02b + 1ca2fa9 commit 6532e74

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
- [#707](https://github.com/nf-core/eager/pull/707) - Fix typo in UnifiedGenotyper IndelRealigner command
1313
- Fixed some Java tools not following process memory specifications
1414
- Updated template to nf-core/tools 1.13.2
15+
- [#711](https://github.com/nf-core/eager/pull/711) - Fix conditional execution preventing multivcfanalyze to run
1516

1617
### `Dependencies`
1718

main.nf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,22 +2494,22 @@ process vcf2genome {
24942494
// More complex consensus caller with additional filtering functionality (e.g. for heterozygous calls) to generate SNP tables and other things sometimes used in aDNA bacteria studies
24952495

24962496
// Create input channel for MultiVCFAnalyzer, possibly mixing with pre-made VCFs.
2497-
if (params.additional_vcf_files == '') {
2498-
ch_vcfs_for_multivcfanalyzer = ch_ug_for_multivcfanalyzer.map{ it[7] }.collect()
2497+
if (!params.additional_vcf_files) {
2498+
ch_vcfs_for_multivcfanalyzer = ch_ug_for_multivcfanalyzer.map{ it[-1] }.collect()
24992499
} else {
2500-
ch_vcfs_for_multivcfanalyzer = ch_ug_for_multivcfanalyzer.map{ it [7] }.collect().mix(ch_extravcfs_for_multivcfanalyzer)
2500+
ch_vcfs_for_multivcfanalyzer = ch_ug_for_multivcfanalyzer.map{ it [-1] }.collect().mix(ch_extravcfs_for_multivcfanalyzer)
25012501
}
25022502

25032503
process multivcfanalyzer {
25042504
label 'mc_small'
25052505
publishDir "${params.outdir}/multivcfanalyzer", mode: params.publish_dir_mode
25062506

25072507
when:
2508-
params.genotyping_tool == 'ug' && params.run_multivcfanalyzer && params.gatk_ploidy == '2'
2508+
params.genotyping_tool == 'ug' && params.run_multivcfanalyzer && params.gatk_ploidy.toString() == '2'
25092509

25102510
input:
2511-
file vcf from ch_vcfs_for_multivcfanalyzer.collect()
2512-
file fasta from ch_fasta_for_multivcfanalyzer.collect()
2511+
file vcf from ch_vcfs_for_multivcfanalyzer
2512+
file fasta from ch_fasta_for_multivcfanalyzer
25132513

25142514
output:
25152515
file('fullAlignment.fasta.gz')

0 commit comments

Comments
 (0)