class LabToLabCorrelation(EntityToEntityCorrelation): """ A correlation between two laboratory tests in the context of a particular population and cohort """ _inherited_slots: ClassVar[List[str]] = [] class_class_uri: ClassVar[URIRef] = BIOLINK.LabToLabCorrelation class_class_curie: ClassVar[str] = "biolink:LabToLabCorrelation" class_name: ClassVar[str] = "lab to lab correlation" class_model_uri: ClassVar[URIRef] = BIOLINK.LabToLabCorrelation subject: Union[ElementIdentifier, LaboratoryTestId] = None object: Union[ElementIdentifier, LaboratoryTestId] = None edge_label: Union[str, LabelType] = None relation: Union[str, URIorCURIE] = NCIT.C48834 id: Union[ElementIdentifier, LabToLabCorrelationId] = bnode() def __post_init__(self): if self.id is not None and not isinstance(self.id, LabToLabCorrelationId): self.id = LabToLabCorrelationId(self.id) if self.subject is not None and not isinstance(self.subject, LaboratoryTestId): self.subject = LaboratoryTestId(self.subject) if self.object is not None and not isinstance(self.object, LaboratoryTestId): self.object = LaboratoryTestId(self.object) super().__post_init__()
class EntityToEntityCorrelation(Association): _inherited_slots: ClassVar[List[str]] = [] class_class_uri: ClassVar[URIRef] = BIOLINK.EntityToEntityCorrelation class_class_curie: ClassVar[str] = "biolink:EntityToEntityCorrelation" class_name: ClassVar[str] = "entity to entity correlation" class_model_uri: ClassVar[URIRef] = BIOLINK.EntityToEntityCorrelation subject: Union[ElementIdentifier, NamedThingId] = None object: Union[ElementIdentifier, NamedThingId] = None edge_label: Union[str, LabelType] = None relation: Union[str, URIorCURIE] = NCIT.C48834 id: Union[ElementIdentifier, EntityToEntityCorrelationId] = bnode() correlation_coefficient: Optional[float] = None population: Optional[Union[str, URI]] = None cohort: Optional[Union[str, URI]] = None def __post_init__(self): if self.id is not None and not isinstance(self.id, EntityToEntityCorrelationId): self.id = EntityToEntityCorrelationId(self.id) if self.relation is not None and not isinstance( self.relation, URIorCURIE): self.relation = URIorCURIE(self.relation) if self.population is not None and not isinstance( self.population, URI): self.population = URI(self.population) if self.cohort is not None and not isinstance(self.cohort, URI): self.cohort = URI(self.cohort) super().__post_init__()
class C1(YAMLRoot): _inherited_slots: ClassVar[List[str]] = [] class_class_uri: ClassVar[URIRef] = TEST.C1 class_class_curie: ClassVar[str] = "test:C1" class_name: ClassVar[str] = "c1" class_model_uri: ClassVar[URIRef] = TEST.C1 s1: Optional[str] = True s1p: Optional[str] = True s2: Optional[str] = False s2p: Optional[str] = False slot_uri: Optional[str] = None slot_curie: Optional[str] = None class_uri: Optional[str] = None class_curie: Optional[str] = None bnode: Optional[str] = bnode() txt: Optional[str] = "penguins\"doves" int: Optional[str] = -1403 dfltrange: Optional[str] = None dfltns: Optional[str] = None
class LabToMedicationCorrelation(EntityToEntityCorrelation): _inherited_slots: ClassVar[List[str]] = [] class_class_uri: ClassVar[URIRef] = BIOLINK.LabToMedicationCorrelation class_class_curie: ClassVar[str] = "biolink:LabToMedicationCorrelation" class_name: ClassVar[str] = "lab to medication correlation" class_model_uri: ClassVar[URIRef] = BIOLINK.LabToMedicationCorrelation subject: Union[ElementIdentifier, LaboratoryTestId] = None object: Union[ElementIdentifier, DrugId] = None edge_label: Union[str, LabelType] = None relation: Union[str, URIorCURIE] = NCIT.C48834 id: Union[ElementIdentifier, LabToMedicationCorrelationId] = bnode() def __post_init__(self): if self.id is not None and not isinstance( self.id, LabToMedicationCorrelationId): self.id = LabToMedicationCorrelationId(self.id) if self.subject is not None and not isinstance(self.subject, LaboratoryTestId): self.subject = LaboratoryTestId(self.subject) if self.object is not None and not isinstance(self.object, DrugId): self.object = DrugId(self.object) super().__post_init__()
class C1(YAMLRoot): _inherited_slots: ClassVar[List[str]] = [] class_class_uri: ClassVar[URIRef] = TEST.C1 class_class_curie: ClassVar[str] = "test:C1" class_name: ClassVar[str] = "c1" class_model_uri: ClassVar[URIRef] = TEST.C1 s1: Optional[str] = True s1p: Optional[str] = True s2: Optional[str] = False s2p: Optional[str] = False slot_uri: Optional[str] = None slot_curie: Optional[str] = None class_uri: Optional[str] = None class_curie: Optional[str] = None bnode: Optional[str] = bnode() txt: Optional[str] = "penguins\"doves" int: Optional[str] = -1403 dfltrange: Optional[str] = None dfltns: Optional[str] = None def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]): if self.s1 is not None and not isinstance(self.s1, str): self.s1 = str(self.s1) if self.s1p is not None and not isinstance(self.s1p, str): self.s1p = str(self.s1p) if self.s2 is not None and not isinstance(self.s2, str): self.s2 = str(self.s2) if self.s2p is not None and not isinstance(self.s2p, str): self.s2p = str(self.s2p) if self.slot_uri is not None and not isinstance(self.slot_uri, str): self.slot_uri = str(self.slot_uri) if self.slot_curie is not None and not isinstance( self.slot_curie, str): self.slot_curie = str(self.slot_curie) if self.class_uri is not None and not isinstance(self.class_uri, str): self.class_uri = str(self.class_uri) if self.class_curie is not None and not isinstance( self.class_curie, str): self.class_curie = str(self.class_curie) if self.bnode is not None and not isinstance(self.bnode, str): self.bnode = str(self.bnode) if self.txt is not None and not isinstance(self.txt, str): self.txt = str(self.txt) if self.int is not None and not isinstance(self.int, str): self.int = str(self.int) if self.dfltrange is not None and not isinstance(self.dfltrange, str): self.dfltrange = str(self.dfltrange) if self.dfltns is not None and not isinstance(self.dfltns, str): self.dfltns = str(self.dfltns) super().__post_init__(**kwargs)