class lnschema_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], bionty_source: Optional[BiontySource])#

Bases: BioRegistry

Proteins - Uniprot.


Bulk create Protein records via from_values.


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


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.

bionty_source ForeignKey

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

files ManyToManyField

Files linked to the protein.

datasets ManyToManyField

Datasets linked to the protein.

feature_sets ManyToManyField

Featuresets linked to this protein.