Skip to content

Commit 38b6c08

Browse files
committed
Replaced automatic addition of chr- for VEP
1 parent f6fe0d9 commit 38b6c08

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

selene_sdk/predict/_variant_effect_prediction.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@ def read_vcf_file(input_path,
8585
chrom = str(cols[0])
8686
if 'CHR' == chrom[:3]:
8787
chrom = chrom.replace('CHR', 'chr')
88-
elif "chr" not in chrom:
89-
chrom = "chr" + chrom
9088

9189
if chrom == "chrMT" and \
9290
chrom not in reference_sequence.get_chrs():
9391
chrom = "chrM"
92+
elif chrom == "MT" and \
93+
chrom not in reference_sequence.get_chrs():
94+
chrom = "M"
9495

9596
pos = int(cols[1])
9697
name = cols[2]

0 commit comments

Comments
 (0)