-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject_classes.py
More file actions
134 lines (106 loc) · 2.99 KB
/
Copy pathobject_classes.py
File metadata and controls
134 lines (106 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
#Object definitions for clinical trial data
from typing import TypedDict, List, Literal, Optional
class Target(TypedDict):
# Annotated fields
#gene info
gene: str #ai annotated gene name, not necessarily official symbol
gene_symbol: str
HGNC_id: str
#binding and cytotoxicity
antigen_ligand: str
binding_type: str
cytotoxicity: str
cytotoxicity_type: str
cytotoxicity_mechanism: str
#modifiers
enzyme_product: bool
epitope: bool
variant: bool
isoform: bool
HLA_specific: bool
gated: bool
other_modifier: Optional[str]
class Drug(TypedDict):
# Source fields from associated intervention object
drug_name: str
intervention_type: str
drug_description: str
# Annotated fields
type: Literal[
"RELEVANT_DRUG",
"NOT_RELEVANT_DRUG"
]
# Drug mapping
NCI_thesaurus_concept_id: Optional[str]
NCI_thesaurus_preferred_term: Optional[str]
NCI_thesaurus_definition: Optional[str]
drug_mesh_term: Optional[str]
# Categorizations
drug_category: Optional[str]
drug_class: Optional[str]
# Delivery route
drug_delivery_route: Optional[str]
# Mechanism of action
drug_mechanism_of_action: Optional[str]
# Targets
targets: Optional[List[Target]] # LIST OF OBJECTS
class Disease(TypedDict):
# Annotated fields
# Disease categorization
type: Literal[
"CANCER",
"NON-CANCER"
]
# Disease name and tissue
disease_name: str
tissue_type: str
# Disease mapping
disease_mesh_term: Optional[str]
Oncotree_name: Optional[str]
Oncotree_mainType: Optional[str]
class Intervention(TypedDict):
#Source fields
type: str
name: str
description: str
arm_group_labels: List[str] # LIST
other_names: List[str] # LIST
class ArmGroup(TypedDict):
#Source fields
label: str
type: str
description: str
intervention_names: List[str] # LIST
drugs: Optional[List[Drug]] # LIST OF OBJECTS
class ClinicalTrial(TypedDict):
type: Literal[
"IMMUNOTHERAPY",
"NOT_IMMUNOTHERAPY"
]
# Core identification
nct_id: str
brief_title: str
official_title: str
# Study description
brief_summary: str
detailed_description: str
conditions: List[str] # LIST
condition_mesh_terms: List[str] # LIST
keywords: List[str] # LIST
# Study design
study_type: str
# Study arms and interventions
arm_groups: List[ArmGroup] # LIST OF OBJECTS
interventions: List[Intervention] # LIST OF OBJECTS
intervention_mesh_terms: List[str] # LIST
# Eligibility
eligibility_criteria: str
#annotation tracking
trial_source: Optional[str]
annotation_status: Optional[str]
#annotation
ai_summary: Optional[str]
eligibility_summary: Optional[str]
annotation_time_seconds: Optional[float]
drugs: List[Drug] # LIST OF OBJECTS
diseases: List[Disease] # LIST OF OBJECTS