Skip to content

Commit 617665a

Browse files
indexing longphase vcf
1 parent 4716d6b commit 617665a

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

modules/nf-core/longphase/phase/main.nf

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/severus/main.nf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/local/tumor_normal_happhase.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ workflow TUMOR_NORMAL_HAPPHASE {
239239
return [ meta, tumor_bam, tumor_bai, normal_bam, normal_bai ]
240240
}
241241
.join(LONGPHASE_PHASE.out.vcf)
242+
.join(LONGPHASE_PHASE.out.vcf.tbi)
242243
.set{tumor_normal_severus}
243244

244245
// tumor_normal_severus -> meta: [id, paired_data, platform, sex, fiber, basecall_model]
@@ -251,7 +252,7 @@ workflow TUMOR_NORMAL_HAPPHASE {
251252
// Get ClairS input channel
252253

253254
tumor_normal_severus
254-
.map { meta, tumor_bam, tumor_bai, normal_bam, normal_bai, vcf ->
255+
.map { meta, tumor_bam, tumor_bai, normal_bam, normal_bai, vcf, tbi ->
255256
def model = (!meta.clairS_model || meta.clairS_model.toString().trim() in ['', '[]']) ? clairs_modelMap.get(meta.basecall_model.toString().trim()) : meta.clairS_model
256257
return[meta , tumor_bam, tumor_bai, normal_bam, normal_bai,model]
257258
}

subworkflows/local/tumor_only_happhase.nf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,15 @@ workflow TUMOR_ONLY_HAPPHASE {
164164
haplotagged_bams
165165
.join(SAMTOOLS_INDEX.out.bai)
166166
.join(LONGPHASE_PHASE.out.vcf)
167-
.map{meta, hap_bam, hap_bai, vcf ->
167+
.join(LONGPHASE_PHASE.out.vcf.tbi)
168+
.map{meta, hap_bam, hap_bai, vcf,tbi ->
168169
def new_meta = [id: meta.id,
169170
paired_data: meta.paired_data,
170171
platform: meta.platform,
171172
sex: meta.sex,
172173
fiber: meta.fiber,
173174
basecall_model: meta.basecall_model]
174-
return[new_meta, hap_bam, hap_bai, [],[], vcf]
175+
return[new_meta, hap_bam, hap_bai, [],[], vcf,tbi]
175176
}
176177
.set{ tumor_only_severus }
177178

0 commit comments

Comments
 (0)