Skip to content

Commit

Permalink
change: snp ids should not be in civic mp aliases during transform (#260
Browse files Browse the repository at this point in the history
)

* 58ec1b2 resolved for variants, but not molecular profiles. The test
  data was outdated
  • Loading branch information
korikuzma authored Dec 18, 2023
1 parent 9e257d3 commit 2832de0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
5 changes: 4 additions & 1 deletion metakb/transform/civic.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ def _add_protein_consequences(
continue

# Get aliases from MP and Variant record
aliases = (mp["aliases"] or []) + (civic_variation_data["aliases"] or [])
aliases = civic_variation_data["aliases"] or []
for a in (mp["aliases"] or []):
if not SNP_RE.match(a):
aliases.append(a)

# Get molecular profile score data
mp_score = mp["molecular_profile_score"]
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def civic_mpid33(civic_vid33):
},
{
"name": "CIViC Molecular Profile Score",
"value": 378.0,
"value": 379.0,
"type": "Extension"
},
{
Expand Down
20 changes: 14 additions & 6 deletions tests/data/transform/therapeutic/civic_harvester.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,13 @@
33
],
"name": "EGFR L858R",
"molecular_profile_score": 378.0,
"molecular_profile_score": 379.0,
"description": "EGFR L858R has long been recognized as a functionally significant mutation in cancer, and is one of the most prevalent single mutations in lung cancer. Best described in non-small cell lung cancer (NSCLC), the mutation seems to confer sensitivity to first and second generation TKI's like gefitinib and neratinib. NSCLC patients with this mutation treated with TKI's show increased overall and progression-free survival, as compared to chemotherapy alone. Third generation TKI's are currently in clinical trials that specifically focus on mutant forms of EGFR, a few of which have shown efficacy in treating patients that failed to respond to earlier generation TKI therapies.",
"sources": [],
"aliases": []
"aliases": [
"LEU858ARG",
"RS121434568"
],
"sources": []
},
{
"type": "molecular_profile",
Expand All @@ -565,8 +568,13 @@
"name": "BRAF V600E",
"molecular_profile_score": 1353.5,
"description": "BRAF V600E has been shown to be recurrent in many cancer types. It is one of the most widely studied variants in cancer. This variant is correlated with poor prognosis in certain cancer types, including colorectal cancer and papillary thyroid cancer. The targeted therapeutic dabrafenib has been shown to be effective in clinical trials with an array of BRAF mutations and cancer types. Dabrafenib has also shown to be effective when combined with the MEK inhibitor trametinib in colorectal cancer and melanoma. However, in patients with TP53, CDKN2A and KRAS mutations, dabrafenib resistance has been reported. Ipilimumab, regorafenib, vemurafenib, and a number of combination therapies have been successful in treating V600E mutations. However, cetuximab and panitumumab have been largely shown to be ineffective without supplementary treatment.",
"sources": [],
"aliases": []
"aliases": [
"RS113488022",
"VAL600GLU",
"V640E",
"VAL640GLU"
],
"sources": []
}
]
}
}

0 comments on commit 2832de0

Please sign in to comment.