File: filter-cyvcf2.py

package info (click to toggle)
cyvcf2 0.31.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: python: 1,623; ansic: 240; makefile: 228; sh: 91
file content (9 lines) | stat: -rw-r--r-- 176 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
import sys
import cyvcf2
n = 0
for v in cyvcf2.VCF(sys.argv[1]):
    if len(v.ALT) > 1: continue
    if v.QUAL < 20: continue
    if v.aaf > 0.05: continue
    n += 1
print(n)