bionty.Phenotype¶
- class bionty.Phenotype(name: str, ontology_id: str | None, abbr: str | None, synonyms: str | None, description: str | None, parents: list[Phenotype], public_source: PublicSource | None)¶
Bases:
BioRegistry
,TracksRun
,TracksUpdates
Phenotypes - Human Phenotype, Phecodes, Mammalian Phenotype, Zebrafish Phenotype.
Notes
For more info, see tutorials Manage biological registries and Phenotype.
Bulk create Phenotype records via
from_values
.Examples
>>> record = bionty.Phenotype.from_public(name="Arachnodactyly") >>> record.save()
Attributes¶
- objects Manager¶
Fields¶
- created_at DateTimeField¶
Time of creation of record.
- updated_at DateTimeField¶
Time of last update to record.
- id AutoField¶
Internal id, valid only in one DB instance.
- uid CharField¶
A universal id (hash of selected field).
- name CharField¶
Name of the phenotype.
- ontology_id CharField¶
Ontology ID of the phenotype.
- abbr CharField¶
A unique abbreviation of phenotype.
- synonyms TextField¶
Bar-separated (|) synonyms that correspond to this phenotype.
- description TextField¶
Description of the phenotype.
- public_source ForeignKey¶
PublicSource
this phenotype associates with.
- previous_runs ManyToManyField¶
Sequence of runs that created or updated the record.
- parents ManyToManyField¶
Parent phenotype records.
- artifacts ManyToManyField¶
Artifacts linked to the phenotype.
Methods¶