Skip to content

Commit 288c45c

Browse files
committed
Removing extra octopus filter that results in lower recall
1 parent 9f1c3ff commit 288c45c

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

workflow/rules/somatic.smk

+5-12
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ rule octopus_filter:
214214
input:
215215
vcf = join(workpath, "octopus", "somatic", "{name}.octopus.unfiltered.vcf"),
216216
output:
217-
vcfa = join(workpath, "octopus", "somatic", "{name}.octopus.PASS.vcf"),
218-
vcfb = join(workpath, "octopus", "somatic", "{name}.octopus.SOMATIC.vcf"),
219-
vcfc = join(workpath, "octopus", "somatic", "{name}.octopus.SOMATIC_PASS.vcf"),
217+
vcfa = join(workpath, "octopus", "somatic", "{name}.octopus.PASS.vcf"),
218+
vcfb = join(workpath, "octopus", "somatic", "{name}.octopus.SOMATIC.vcf"),
220219
vcfsort = join(workpath, "octopus", "somatic", "{name}.octopus.vcf"),
221220
params:
222221
genome = config['references']['GENOME'],
@@ -241,18 +240,11 @@ rule octopus_filter:
241240
'( $1 ~ /^#/ ) || ( $8 ~ /SOMATIC/ ) {{print}}' \\
242241
{output.vcfa} \\
243242
> {output.vcfb}
244-
245-
bcftools filter \\
246-
-i 'FMT/FT[0:0]=="PASS"' \\
247-
{output.vcfb} \\
248-
| bcftools filter \\
249-
-i '{params.bcftools_filter_i_option}' \\
250-
-o {output.vcfc}
251-
243+
252244
bcftools sort \\
253245
-o {output.vcfsort} \\
254246
-O v \\
255-
{output.vcfc}
247+
{output.vcfb}
256248
"""
257249

258250

@@ -1130,6 +1122,7 @@ rule somatic_selectvar:
11301122
{output.filt}
11311123
"""
11321124

1125+
11331126
rule somatic_merge_tumor:
11341127
"""Data-processing step to post-process vcf file generated by all the
11351128
somatic callers. This step takes filtered tumor sample callsets from

0 commit comments

Comments
 (0)