Skip to content

Commit d7be891

Browse files
committed
Review suggestions
1 parent c4c21ff commit d7be891

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

subworkflows/local/annotate_genome_snvs/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ workflow ANNOTATE_GENOME_SNVS {
101101
.join(VCFANNO.out.tbi, failOnMismatch:true, failOnDuplicate:true)
102102
.set { ch_bcftools_view_in }
103103

104+
// filter on frequencies
104105
BCFTOOLS_VIEW(
105106
ch_bcftools_view_in,
106-
[], [], []) // filter on frequencies
107+
[], [], [])
107108

108109
// Annotating with CADD
109110
if (!val_cadd_resources.equals(null)) {

subworkflows/local/annotate_mt_snvs/main.nf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ workflow ANNOTATE_MT_SNVS {
3636

3737
VCFANNO_MT(ch_in_vcfanno, ch_vcfanno_toml, ch_vcfanno_lua, ch_vcfanno_resources)
3838

39-
ch_vcfanno_vcf = VCFANNO_MT.out.vcf
40-
4139
// Annotating with CADD
4240
if (!val_cadd_resources.equals(null)) {
4341
ANNOTATE_CADD (
@@ -52,7 +50,7 @@ workflow ANNOTATE_MT_SNVS {
5250
ch_cadd_vcf = channel.empty()
5351
}
5452

55-
ch_vcfanno_vcf
53+
VCFANNO_MT.out.vcf
5654
.join(ch_cadd_vcf, remainder: true)
5755
.branch { meta, vcfanno, cadd ->
5856
vcfanno: cadd.equals(null)

subworkflows/local/call_sv_MT/main.nf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
2-
// Call SV MT
2+
// Calls SV MT, concatenates FASTQs per sample, then runs MitoSalt and SaltShaker.
3+
// Also detects the number of discordant pairs using the mitodel script.
34
//
45

56
include { MT_DELETION } from '../../../modules/local/mt_deletion_script'
@@ -43,10 +44,10 @@ workflow CALL_SV_MT {
4344

4445
ch_reads
4546
.map { meta, reads ->
46-
def groupKey = meta.sample
47-
return [groupKey, meta, reads]
47+
def sample_group_key = meta.sample
48+
return [sample_group_key, meta, reads]
4849
}
49-
.groupTuple(by: 0)
50+
.groupTuple()
5051
.map { sample_id, meta_list, reads_list ->
5152
def combined_meta = meta_list[0].clone()
5253
combined_meta.id = sample_id

0 commit comments

Comments
 (0)