Skip to content

Commit

Permalink
index concat files
Browse files Browse the repository at this point in the history
  • Loading branch information
atrigila committed Apr 20, 2024
1 parent b9b4873 commit 0ed8708
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions conf/quilt_subworkflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,17 @@ process {
]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CONCATENATE_BCFTOOLS:BCFTOOLS_INDEX' {
ext.args = {[
"--tbi",
].join(" ").trim()}

publishDir = [
[
path: { "${params.outdir}/quilt_impute/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}/concat" },
mode: params.publish_dir_mode,
],
]
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include { BCFTOOLS_CONCAT } from '../../../modules/nf-core/bcftools/concat/main'
include { BCFTOOLS_INDEX } from '../../../modules/nf-core/bcftools/index/main'

workflow VCF_CONCATENATE_BCFTOOLS {

Expand All @@ -17,7 +18,13 @@ workflow VCF_CONCATENATE_BCFTOOLS {
// Ligate and concatenate chunks
BCFTOOLS_CONCAT(ch_vcf_tbi_grouped)

// Index concatenated VCF
BCFTOOLS_INDEX(BCFTOOLS_CONCAT.out.vcf)

// Join VCFs and TBIs
ch_imputed_vcf_tbi = BCFTOOLS_CONCAT.out.vcf.join(BCFTOOLS_INDEX.out.tbi)

emit:
ch_concat_vcf = BCFTOOLS_CONCAT.out.vcf
ch_imputed_vcf_tbi // channel: [ meta, vcf, tbi ]

}

0 comments on commit 0ed8708

Please sign in to comment.