From 60b0e7faca22cdf8222ea3213f9753431985e464 Mon Sep 17 00:00:00 2001 From: Kevin Dunnicliffe Date: Fri, 1 Nov 2019 09:50:44 +0000 Subject: [PATCH] SAP-11534 : improve clnghvs handling by fallback to MeasureSet.name --- src/parse_clinvar_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_clinvar_xml.py b/src/parse_clinvar_xml.py index f58ba46..89f3d49 100755 --- a/src/parse_clinvar_xml.py +++ b/src/parse_clinvar_xml.py @@ -313,7 +313,7 @@ def parse_clinvar_tree(handle, dest=sys.stdout, multi=None, verbose=True, genome # find hgvs_c if (attribute_type == 'HGVS, coding, RefSeq' and "c." in attribute_value): current_row['clnhgvs'] = attribute_value - else: + elif "c." in var_name: current_row['clnhgvs'] = var_name # find hgvs_p