Skip to content

Commit

Permalink
fixing allelic imbalance filtering bcftools command
Browse files Browse the repository at this point in the history
  • Loading branch information
HolEv committed Oct 21, 2024
1 parent 87d5f41 commit 8e45654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/preprocessing/qc.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rule qc_allelic_imbalance:
resources:
mem_mb=lambda wildcards, attempt: 256 * attempt,
shell:
f"""{load_bcftools} bcftools query --format '%CHROM\t%POS\t%REF\t%ALT\n' --exclude 'COUNT(GT="het")=0 || (GT="het" & ((TYPE="snp" & (FORMAT/AD[*:1] / FORMAT/AD[*:0]) > 0.15) | (TYPE="indel" & (FORMAT/AD[*:1] / FORMAT/AD[*:0]) > 0.20)))' {{input}} | gzip > {{output}}"""
f"""{load_bcftools} bcftools query --format '%CHROM\t%POS\t%REF\t%ALT\n' --exclude 'COUNT(GT="het")=0 || COUNT(GT="het" & ((TYPE="snp" & (FORMAT/AD[*:1] / FORMAT/AD[*:0]) > 0.15) | (TYPE="indel" & (FORMAT/AD[*:1] / FORMAT/AD[*:0]) > 0.20)))>0' {{input}} | gzip > {{output}}"""


rule qc_varmiss:
Expand Down

0 comments on commit 8e45654

Please sign in to comment.