Skip to content

Commit

Permalink
Provide indirect evidence of oncogenicity for non-coding variants
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Jun 21, 2024
1 parent 0c9eafd commit 34fb1e5
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pcgr/oncogenicity.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def assign_oncogenicity_evidence(rec = None, tumortype = "Any"):
"LOSS_OF_FUNCTION",
"INTRON_POSITION",
"EXON_POSITION",
"CODING_STATUS",
"gnomADe_EAS_AF",
"gnomADe_NFE_AF",
"gnomADe_AFR_AF",
Expand Down Expand Up @@ -252,9 +253,9 @@ def assign_oncogenicity_evidence(rec = None, tumortype = "Any"):


## For the OM1 criterion ("Located in a critical and well-established part of a functional domain"), we presently
## lack the access to a resource swith such information. As a simplified means to gather some evidence in this regard,
## we rather base our criteria matching based on existing actionability evidence (predictive/oncogenic), for which variants are presumably
## located in critical sites of functional domains.
## lack the access to a resource with such information. As a simplified means to gather some evidence in this regard,
## we rather base our criteria matching based on existing actionability evidence (predictive/oncogenic), for which
## variants are presumably located in critical sites of functional domains (in that sense, indirect evidence for OM1)
if not variant_data['BIOMARKER_MATCH'] is None:

## Split all biomarker evidence into a list
Expand All @@ -273,6 +274,17 @@ def assign_oncogenicity_evidence(rec = None, tumortype = "Any"):
## only applicable if OS3 is not set
if variant_data['CLINGEN_VICC_OS3'] is False:
variant_data['CLINGEN_VICC_OM1'] = True

## Catch prognostic/diagnostic non-coding variants (e.g. TERT) - these will rank at the top
## with respect to oncogenicity (altough not classified as oncogenic in the strict sense)
if ('Diagnostic' in eitem or 'Prognostic' in eitem or 'Predictive' in eitem or 'Oncogenic' in eitem) and \
variant_data['CODING_STATUS'] == 'noncoding' and \
'Somatic' in eitem and \
('by_genomic_coord' in eitem or \
'by_hgvsc_principal' in eitem):
## only applicable if OS3 is not set
if variant_data['CLINGEN_VICC_OS3'] is False:
variant_data['CLINGEN_VICC_OM1'] = True

if "gnomADe_EAS_AF" in variant_data.keys() and \
"gnomADe_SAS_AF" in variant_data.keys() and \
Expand Down

0 comments on commit 34fb1e5

Please sign in to comment.