Skip to content

Commit cd26174

Browse files
committed
corrected dbNSFP for indels resulting in missense
1 parent 1e7cace commit cd26174

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MobiDetailsApp/md_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def get_value_from_tabix_file(text, tabix_file, var, variant_features, db=None):
912912
return record
913913
else:
914914
j = 4
915-
ppos_list = re.split(';', record[j+7])
915+
ppos_list = re.split(';', record[j+9])
916916
if aa1 == record[j] and \
917917
aa2 == record[j+1] and \
918918
ppos in ppos_list:

tests/test_md_utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def test_acmg2lovd(app, acmg_class, lovd_class):
558558
('dbnsfp', var, '0.0', int(md_utilities.external_tools['SIFT']['dbNSFP_value_col']), 'dbnsfp', var_f),
559559
('dbnsfp', var, '1.0', int(md_utilities.external_tools['Polyphen-2']['dbNSFP_value_col_hdiv']), 'dbnsfp', var_f),
560560
('dbnsfp', var, '0.999', int(md_utilities.external_tools['Polyphen-2']['dbNSFP_value_col_hvar']), 'dbnsfp', var_f),
561-
('dbnsfp', var, '0.815541', int(md_utilities.external_tools['FatHMM-XF']['dbNSFP_value_col']), 'dbnsfp', var_f),
561+
('dbnsfp', var, '0.56853', int(md_utilities.external_tools['FatHMM-XF']['dbNSFP_value_col']), 'dbnsfp', var_f),
562562
# ('dbnsfp', var, '0.98828', int(md_utilities.hidden_external_tools['FatHMM-MKL']['dbNSFP_value_col']), 'dbnsfp', var_f),
563563
('dbnsfp', var, '9.39', int(md_utilities.hidden_external_tools['Provean']['dbNSFP_value_col']), 'dbnsfp', var_f),
564564
# ('dbnsfp', var, '0.000146', int(md_utilities.hidden_external_tools['LRT']['dbNSFP_value_col']), 'dbnsfp', var_f),
@@ -656,7 +656,7 @@ def test_get_bigwig_score(app, client, tool, var, expected, file_name, var_f):
656656
def test_getdbNSFP_results():
657657
# clinpred
658658
record = md_utilities.get_value_from_tabix_file('dbnsfp', md_utilities.local_files['dbnsfp']['abs_path'], var, var_f)
659-
score, pred, star = md_utilities.getdbNSFP_results(0, 109, 111, ';', 'basic', 1.1, 'gt', record)
659+
score, pred, star = md_utilities.getdbNSFP_results(0, 117, 119, ';', 'basic', 1.1, 'gt', record)
660660
assert score == '0.883407413959503'
661661
assert pred == 'Damaging'
662662
assert star == ''

0 commit comments

Comments
 (0)