File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/biocommons/gks_conversion_tool Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ def convert_gks_to_hl7_v2(statement: Statement) -> dict[str, Any]:
9898 chromosome_ref_seq , g_dot = _parse_hgvs_dot (hgvs_g )
9999
100100 # 511 - Allele start/end
101+ # to get genomic allele,
102+ # get the seqRef Id, give to seqrepo, convert to different namespace, check prefix
101103 allele_start , allele_end = _get_location_interval (location )
102104
103105 # 513 - DNA Region
@@ -144,6 +146,7 @@ def convert_gks_to_hl7_v2(statement: Statement) -> dict[str, Any]:
144146 # 550 - Copy Number
145147
146148 # 553 - Variant Classification
149+ variant_classification = statement .classification
147150
148151 # 554 - Interpretation
149152
@@ -172,6 +175,7 @@ def convert_gks_to_hl7_v2(statement: Statement) -> dict[str, Any]:
172175 result ["AMINO_ACID_CHANGE" ] = p_dot
173176 result ["GENOMIC_DNA_CHANGE" ] = g_dot
174177 result ["GENOMIC_REFERENCE_SEQUENCE_ID" ] = chromosome_ref_seq
178+ result ["VARIANT_CLASSIFICATION" ] = variant_classification
175179
176180 return result
177181
You can’t perform that action at this time.
0 commit comments