bionty.Organism#

class bionty.Organism(name: str, taxon_id: Optional[str], scientific_name: Optional[str])#
class bionty.Organism(*db_args)

Bases: BioRegistry

Organism - NCBI Taxonomy, Ensembl Organism.

Examples

>>> record = bionty.Organism.from_public(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.

public_source ForeignKey

PublicSource 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.

artifacts ManyToManyField

Artifacts linked to the organism.

collections ManyToManyField

Collections linked to the organism.

Methods