Skip to content

Commit 275d31d

Browse files
LouisLeNezetLouisLeNezet
authored andcommitted
Fix input truth vcf usage
1 parent 98fbeaa commit 275d31d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

main.nf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ workflow NFCORE_PHASEIMPUTE {
8080
ch_input_validate = ch_input
8181
}
8282

83-
if (params.steps.split(',').contains("all")) {
84-
ch_input_truth.map{
85-
error "Cannot run all steps with --input-truth"
86-
}
87-
ch_input_truth = ch_input
88-
}
89-
9083
//
9184
// WORKFLOW: Run pipeline
9285
//

workflows/phaseimpute/main.nf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ workflow PHASEIMPUTE {
118118
}
119119

120120
// Use input for simulation as truth for validation step
121-
ch_input_truth = ch_input_sim
121+
// if no truth is provided
122+
if (!params.input_truth) {
123+
ch_input_truth = ch_input_sim
124+
}
122125

123126
// Program to filter chromosomes
124127
filter_chr_program = ch_region
@@ -491,7 +494,7 @@ workflow PHASEIMPUTE {
491494
[[],[]],
492495
[[],[]],
493496
[[],[]],
494-
ch_fasta.map{ [it[0], it[1]] }
497+
[[],[]] //ch_fasta.map{ [it[0], it[1]] }
495498
)
496499
ch_versions = ch_versions.mix(BCFTOOLS_STATS_TRUTH.out.versions)
497500
ch_multiqc_files = ch_multiqc_files.mix(BCFTOOLS_STATS_TRUTH.out.stats.map{ [it[1]] })

0 commit comments

Comments
 (0)