Human Protein Atlas (HPA)¶
Access protein expression data via the HPA API.
Overview¶
The Human Protein Atlas provides data on:
- Tissue Expression - Protein levels across tissues
- Blood Expression - Protein levels in blood
- Brain Expression - Brain region-specific expression
- Subcellular Location - Where proteins are located in cells
- Pathology - Cancer expression data
Quick Start¶
from biodbs.fetch import (
hpa_get_gene,
hpa_get_tissue_expression,
hpa_get_subcellular_location,
)
# Get gene data
gene = hpa_get_gene("TP53")
Gene Data¶
Get Gene¶
from biodbs.fetch import hpa_get_gene, hpa_get_genes
gene = hpa_get_gene("TP53")
genes = hpa_get_genes(["TP53", "BRCA1", "EGFR"])
Search¶
Expression Data¶
Tissue Expression¶
from biodbs.fetch import hpa_get_tissue_expression
expression = hpa_get_tissue_expression("TP53")
df = expression.as_dataframe()
Blood Expression¶
Brain Expression¶
Subcellular Location¶
from biodbs.fetch import hpa_get_subcellular_location
location = hpa_get_subcellular_location("TP53")
Pathology Data¶
Protein Classes¶
Using the Fetcher Class¶
Related Resources¶
- UniProt - Get detailed protein information, including subcellular localization annotations.
- Ensembl - Get genomic context and transcript information for genes.
- ID Translation - Translate between gene symbols and other identifiers for use with HPA.