bionty.Protein

class bionty.Protein(name: str | None, uniprotkb_id: str | None, synonyms: str | None, length: int | None, gene_symbol: str | None, ensembl_gene_ids: str | None, organism: Organism | None, public_source: PublicSource | None)

Bases: BioRegistry, TracksRun, TracksUpdates

Proteins - Uniprot.

Notes

For more info, see tutorials Manage biological registries and Protein.

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

created_at DateTimeField

Time of creation of record.

created_by ForeignKey

Creator of record, a User.

run ForeignKey

Last run that created or updated the record, a Run.

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

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.

previous_runs ManyToManyField

Sequence of runs that created or updated the record.

artifacts ManyToManyField

Artifacts linked to the protein.

feature_sets ManyToManyField

Featuresets linked to this protein.

Methods