Skip to content

Commit

Permalink
Restored having index as input for check vcf step
Browse files Browse the repository at this point in the history
  • Loading branch information
nakib103 committed Sep 24, 2023
1 parent cbe1ecd commit e25bf50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextflow/nf_modules/check_VCF.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ process checkVCF {
errorStrategy 'ignore'

input:
tuple val(meta), path(vcf), path(vep_config)
tuple val(meta), path(vcf), path(vcf_index), path(vep_config)

output:
tuple val(meta), path("*.gz", includeInputs: true), path ("*.gz.{tbi,csi}", includeInputs: true), path(vep_config)
Expand Down
4 changes: 3 additions & 1 deletion nextflow/workflows/run_vep.nf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ workflow {
// NOTE: csi is default unless a tbi index already exists
meta.index_type = file(vcf + ".tbi").exists() ? "tbi" : "csi"

[ meta, vcf, vep_config ]
vcf_index = vcf + ".${meta.index_type}"

[ meta, vcf, vcf_index, vep_config ]
}
.set{ ch_input }

Expand Down

0 comments on commit e25bf50

Please sign in to comment.