lnschema_bionty.Organism#

class lnschema_bionty.Organism(name: str, taxon_id: Optional[str], scientific_name: Optional[str])#

Bases: BioRegistry

Organism - NCBI Taxonomy, Ensembl Organism.

Examples

>>> record = lb.Organism.from_bionty(name="rabbit")

Fields

id AutoField

Internal id, valid only in one DB instance.

uid CharField

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

name CharField

Name of a organism, required field.

ontology_id CharField

NCBI Taxon ID.

scientific_name CharField

Scientific name of a organism.

bionty_source ForeignKey

BiontySource this record 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 organism records.

files ManyToManyField

Files linked to the organism.

datasets ManyToManyField

Datasets linked to the organism.

Methods