@@ -214,9 +214,8 @@ rule octopus_filter:
214
214
input :
215
215
vcf = join (workpath , "octopus" , "somatic" , "{name}.octopus.unfiltered.vcf" ),
216
216
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" ),
220
219
vcfsort = join (workpath , "octopus" , "somatic" , "{name}.octopus.vcf" ),
221
220
params :
222
221
genome = config ['references' ]['GENOME' ],
@@ -241,18 +240,11 @@ rule octopus_filter:
241
240
'( $1 ~ /^#/ ) || ( $8 ~ /SOMATIC/ ) {{print}}' \\
242
241
{output.vcfa} \\
243
242
> {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
+
252
244
bcftools sort \\
253
245
-o {output.vcfsort} \\
254
246
-O v \\
255
- {output.vcfc }
247
+ {output.vcfb }
256
248
"""
257
249
258
250
@@ -1130,6 +1122,7 @@ rule somatic_selectvar:
1130
1122
{output.filt}
1131
1123
"""
1132
1124
1125
+
1133
1126
rule somatic_merge_tumor :
1134
1127
"""Data-processing step to post-process vcf file generated by all the
1135
1128
somatic callers. This step takes filtered tumor sample callsets from
0 commit comments