bionty.Protein#

class bionty.Protein(name: Optional[str], uniprotkb_id: Optional[str], synonyms: Optional[str], length: Optional[int], gene_symbol: Optional[str], ensembl_gene_ids: Optional[str], organism: Optional[Organism], public_source: Optional[PublicSource])#
class bionty.Protein(*db_args)

Bases: BioRegistry

Proteins - Uniprot.

Notes

Bulk create Protein records via from_values.

Examples

>>> record = bionty.Protein.from_public(name="Synaptotagmin-15B", organism="human")
>>> record = bionty.Protein.from_public(gene_symbol="SYT15B", organism="human")

Fields

id AutoField

Internal id, valid only in one DB instance.

uid CharField

A universal id (hash of selected field).

name CharField

Unique name of a protein.

uniprotkb_id CharField

UniProt protein ID, 6 alphanumeric characters, possibly suffixed by 4 more.

synonyms TextField

Bar-separated (|) synonyms that correspond to this protein.

length BigIntegerField

Length of the protein sequence.

gene_symbol CharField

The primary gene symbol corresponds to this protein.

ensembl_gene_ids TextField

Bar-separated (|) Ensembl Gene IDs that correspond to this protein.

organism ForeignKey

Organism this protein associates with.

public_source ForeignKey

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

artifacts ManyToManyField

Artifacts linked to the protein.

collections ManyToManyField

Collections linked to the protein.

feature_sets ManyToManyField

Featuresets linked to this protein.

Methods