Skip to content

Commit

Permalink
use the vcf record's sv type
Browse files Browse the repository at this point in the history
  • Loading branch information
mchowdh200 committed Jul 6, 2022
1 parent eb3597f commit deed3c3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/construct_queries.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import sys
import pysam

vcf = sys.argv[1]
svtype = sys.argv[2]

for record in pysam.VariantFile(vcf, 'r'):
if record.info['SVTYPE'] != svtype: continue
for record in pysam.VariantFile(sys.argv[1], 'r'):
if svtype:=record.info['SVTYPE'] != sys.argv[2]: continue
chrom = record.chrom
pos = record.pos
end = record.stop
Expand All @@ -19,4 +16,3 @@
chrom, end+ci_end[0], end+ci_end[1],
svtype)))
print(query)

0 comments on commit deed3c3

Please sign in to comment.