Skip to content

Commit

Permalink
Fix input truth vcf usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisLeNezet authored and LouisLeNezet committed Dec 2, 2024
1 parent 98fbeaa commit 275d31d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 0 additions & 7 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ workflow NFCORE_PHASEIMPUTE {
ch_input_validate = ch_input
}

if (params.steps.split(',').contains("all")) {
ch_input_truth.map{
error "Cannot run all steps with --input-truth"
}
ch_input_truth = ch_input
}

//
// WORKFLOW: Run pipeline
//
Expand Down
7 changes: 5 additions & 2 deletions workflows/phaseimpute/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ workflow PHASEIMPUTE {
}

// Use input for simulation as truth for validation step
ch_input_truth = ch_input_sim
// if no truth is provided
if (!params.input_truth) {
ch_input_truth = ch_input_sim
}

// Program to filter chromosomes
filter_chr_program = ch_region
Expand Down Expand Up @@ -491,7 +494,7 @@ workflow PHASEIMPUTE {
[[],[]],
[[],[]],
[[],[]],
ch_fasta.map{ [it[0], it[1]] }
[[],[]] //ch_fasta.map{ [it[0], it[1]] }
)
ch_versions = ch_versions.mix(BCFTOOLS_STATS_TRUTH.out.versions)
ch_multiqc_files = ch_multiqc_files.mix(BCFTOOLS_STATS_TRUTH.out.stats.map{ [it[1]] })
Expand Down

0 comments on commit 275d31d

Please sign in to comment.