Skip to content

Commit 650736b

Browse files
committed
fixed bug in translocation case samplot vcf
1 parent 014ed85 commit 650736b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samplot/samplot_vcf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,10 @@ def vcf(parser):
441441
out_file = open(args.command_file, "w")
442442

443443
for var_count,variant in enumerate(vcf):
444-
translocation_chrom = variant.info.get("CHR2")
444+
try:
445+
translocation_chrom = variant.info.get("CHR2")
446+
except:
447+
translocation_chrom = None
445448
svtype = variant.info.get("SVTYPE", "SV")
446449
if args.important_regions:
447450
if not var_in_important_regions(

0 commit comments

Comments
 (0)