lnschema_bionty.Phenotype#

class lnschema_bionty.Phenotype(name: str, ontology_id: Optional[str], abbr: Optional[str], synonyms: Optional[str], description: Optional[str], parents: List[Phenotype], bionty_source: Optional[BiontySource])#

Bases: BioRegistry

Phenotypes - Human Phenotype, Phecodes, Mammalian Phenotype, Zebrafish Phenotype.

Notes

For more info, see tutorial Manage biological registries

Bulk create Phenotype records via from_values.

Examples

>>> record = lb.Phenotype.from_bionty(name="Arachnodactyly")
>>> record.save()

Fields

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.

bionty_source ForeignKey

BiontySource this phenotype associates with.

created_at DateTimeField

Time of creation of record.

updated_at DateTimeField

Time of last update to record.

created_by ForeignKey

Creator of record, a User.

parents ManyToManyField

Parent phenotype records.

files ManyToManyField

Files linked to the phenotype.

datasets ManyToManyField

Datasets linked to the phenotype.

Methods