onconova.terminology.special
CTCAETermsDigestor(verbose=True)
¶
Bases: TerminologyDigestor
Digestor for CTCAE MedDRA terms.
Attributes:
Name | Type | Description |
---|---|---|
LABEL |
str
|
Identifier for the digestor. |
FILENAME |
str
|
Name of the file containing drug to drug class mappings. |
Source code in onconova/terminology/digestors.py
DrugCodedConcept
¶
Bases: CodedConcept
Represents a coded concept for a drug, extending the CodedConcept class.
Attributes:
Name | Type | Description |
---|---|---|
therapy_category |
str | None
|
The category of therapy associated with the drug. Can be None if not specified. |
therapy_category
class-attribute
instance-attribute
¶
NCITAntineoplasticAgentsSubsetDigestor(verbose=True)
¶
Bases: TerminologyDigestor
Digestor for the NCIT Antineoplastic Agents subset terminology.
Source code in onconova/terminology/digestors.py
add_gene_exons()
¶
Populates the GeneExon table with exon information for each gene.
This function retrieves exon data from the EnsemblExonsDigestor, iterates through each gene symbol, and updates the database by creating or retrieving GeneExon objects for each exon associated with a gene. The function uses tqdm to display progress and sets exon attributes such as rank, coding DNA region, and coding genomic region.
Source code in onconova/terminology/special.py
expand_antineoplastic_agent_concepts()
¶
Expands and classifies antineoplastic agent concepts using NCIT codes.
This function loads or creates a cache of NCIT descendant codes, fetches and classifies antineoplastic agents into therapy categories (e.g., immunotherapy, hormone therapy, chemotherapy, etc.) by traversing the NCIT ontology tree, and returns a list of DrugCodedConcept objects with assigned therapy categories.
Returns:
Type | Description |
---|---|
List[DrugCodedConcept]
|
List[DrugCodedConcept]: A list of DrugCodedConcept objects representing antineoplastic agents, |
List[DrugCodedConcept]
|
each annotated with its therapy category. |
Source code in onconova/terminology/special.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
expand_ctcae_terms()
¶
Expands and returns a list of CTCAE (Common Terminology Criteria for Adverse Events) coded concepts.
Uses the CTCAETermsDigestor to process and retrieve all available CTCAE terms.
Returns:
Type | Description |
---|---|
List[CodedConcept]
|
List[CodedConcept]: A list of coded concepts representing CTCAE terms. |