human-protein-atlas-database
google-deepmind/science-skills
Query protein expression levels, subcellular localization, and tissue distribution from the Human Protein Atlas.
What is human-protein-atlas-database?
Access semi-quantitative protein expression data and spatial localization information from the Human Protein Atlas (HPA) based on immunohistochemistry across normal human tissues and cancer types. Use this when you need to confirm protein existence, location within cells, and systemic blood concentration for human genes.
- Map gene symbols to Ensembl IDs for HPA queries
- Retrieve protein abundance levels (High, Medium, Low, Not Detected) across tissues via IHC staining
- Identify subcellular localization (nucleus, mitochondria, etc.) for proteins
- Access full HPA metadata including IHC scores and RNA-seq consensus
- Search for genes matching specific expression criteria (e.g., elevated in specific tissues)
How to install human-protein-atlas-database
npx skills add https://github.com/google-deepmind/science-skills --skill human-protein-atlas-database- uv package manager installed and on PATH
- License acknowledgment: user must review terms at https://www.proteinatlas.org/about/licence before first use
How to use human-protein-atlas-database
- 1.Install the skill using the provided npx command
- 2.Review and accept the Human Protein Atlas license terms when prompted
- 3.Map your gene of interest to an Ensembl ID using resolve-ensembl-id with the gene symbol
- 4.Query tissue expression levels with get-tissue-expression using the Ensembl ID
- 5.Retrieve subcellular location data with get-subcellular-location if needed
- 6.Use search-hpa for complex queries filtering by specific expression criteria
- 7.Parse JSON output using jq or custom scripts; do not output large result files to stdout
Use cases
- Confirm whether a gene's RNA transcript translates to actual protein product in specific tissues
- Determine subcellular location of a protein to understand its function
- Compare RNA-seq expression data with protein-level confirmation across normal and cancer tissues
- Identify tissue-specific protein abundance patterns for drug target validation
- Search for secreted proteins or genes with elevated expression in specific organs like the brain
- Bioinformaticians analyzing protein expression patterns
- Researchers validating gene expression at the protein level
- Drug discovery teams identifying tissue-specific targets
- Computational biologists cross-referencing RNA and protein data
human-protein-atlas-database FAQ
HPA provides semi-quantitative protein expression and subcellular localization based on immunohistochemistry, confirming the actual protein product exists. GTEx provides quantitative RNA-seq expression. Use HPA when you need protein-level confirmation; use GTEx for pure RNA expression without protein interest.
No, the Human Protein Atlas is strictly for human proteins. For other species, you will need alternative databases.
HPA reports protein abundance as High, Medium, Low, or Not Detected based on immunohistochemistry staining intensity across tissues and cancer types.
Use the search-hpa command with query strings like 'brain_category_rna:amygdala'. Refer to references/search-api.md in the skill for detailed query syntax.
Ensure your query is detailed enough and follows the search API syntax. Check references/search-api.md for examples, or search the web for sample HPA queries to construct better search terms.
Full instructions (SKILL.md)
Source of truth, from google-deepmind/science-skills.
name: human-protein-atlas-database description: > Use when you want to retrieve semi-quantitative protein expression and spatial localisation data from the Human Protein Atlas (HPA).
Human Protein Atlas (HPA) Database Integration
This skill provides semi-quantitative protein expression and spatial localisation data from the Human Protein Atlas (HPA). While RNA-seq (e.g., GTEx) tells us if a gene is being transcribed, HPA confirms if the protein product actually exists, where it is located within the cell (e.g. nucleus vs cytoplasm), and its concentration in systemic blood circulation. The data is based on Immunohistochemistry (IHC) across normal human tissues and cancer types.
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/human_protein_atlas_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://www.proteinatlas.org/about/licence, then (2) create the file recording the notification text and timestamp.
When to Use
Use this skill when you need to:
- Map a gene symbol to its Ensembl ID for HPA queries.
- Retrieve the semi-quantitative protein abundance in normal human tissues and cancer types based on IHC staining (High, Medium, Low, or Not Detected).
- Find the specific organelles or subcellular structures where a protein has been localized (e.g., nucleoplasm, mitochondria).
- Check the consistency/agreement between RNA-seq consensus and protein expression levels.
- Search for genes based on specific protein expression criteria (e.g., "elevated in amygdala" or "secreted proteins").
Do NOT use when you need to:
- Query eQTLs, pQTLs, or any variant-level associations. HPA provides wild-type expression data and knows nothing about QTLs.
- Query gene expression in non-human species. HPA is strictly for human proteins.
- Retrieve purely quantitative RNA expression without interest in the protein product (consider using the GTEx skill instead).
Command Selection Guide
Pick the right command on the first try. Match the user's input to the correct subcommand below.
- Map a gene symbol to Ensembl ID:
resolve-ensembl-id - Get tissue protein expression levels:
get-tissue-expression - Get subcellular location of a protein:
get-subcellular-location - Get the full HPA metadata entry for a gene:
get-atlas-entry - Search HPA for genes matching specific criteria:
search-hpa
Quick Start
# Map the ERBB2 gene symbol to its Ensembl ID
uv run scripts/hpa_cli.py resolve-ensembl-id ERBB2 --output /tmp/erbb2_id.json
# Get subcellular location by Ensembl ID
uv run scripts/hpa_cli.py get-subcellular-location ENSG00000141736 --output /tmp/erbb2_location.json
All subcommands write JSON to disk. Always save output in the /tmp/ directory.
The default output file is /tmp/hpa_output.json if --output is not
specified.
Commands
1. resolve-ensembl-id — Gene Symbol → Ensembl ID
Maps a common gene symbol (e.g., "TP53", "ERBB2") to its Ensembl gene ID. HPA endpoints are strictly Ensembl-based.
uv run scripts/hpa_cli.py resolve-ensembl-id TP53 --output /tmp/tp53_id.json
Arguments:
gene_symbol(positional): The standard gene symbol (e.g., "TP53").--output: Output file path (default:/tmp/hpa_output.json).
2. get-tissue-expression — Get Tissue Protein Levels
Returns a list of tissues and their corresponding protein expression levels (High, Medium, Low, or Not Detected) based on IHC staining.
uv run scripts/hpa_cli.py get-tissue-expression ENSG00000130234 \
--tissues "duodenum,thyroid gland" --output /tmp/tissue_expr.json
Arguments:
ensembl_id(positional): The Ensembl Gene ID.--tissues: Comma-separated list of tissues to filter by (optional, defaults to all available tissues).--output: Output file path (default:/tmp/hpa_output.json).
3. get-subcellular-location — Get Subcellular Location
Retrieves the specific organelles or cellular structures where the protein has been localized.
uv run scripts/hpa_cli.py get-subcellular-location ENSG00000141736 \
--output /tmp/subcellular.json
Arguments:
ensembl_id(positional): The Ensembl Gene ID.--output: Output file path.
4. get-atlas-entry — Get Full HPA Entry
Fetches the full metadata for a gene, including IHC scores, RNA-seq consensus, and subcellular location.
uv run scripts/hpa_cli.py get-atlas-entry ENSG00000254647 \
--output /tmp/ins_entry.json
Arguments:
ensembl_id(positional): The Ensembl Gene ID.--format: Format of the returned entry, e.g., json (default:json).--output: Output file path.
5. search-hpa — Search by Attribute
Allows filtering for genes based on specific criteria (e.g., "elevated in amygdala").
uv run scripts/hpa_cli.py search-hpa \
--query "brain_category_rna:amygdala" \
--output /tmp/search_results.json
Arguments:
--query: The search query string. Refer to references/search-api.md for details.--output: Output file path.
Core Rules
- Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce fair use and implement retry logic.
- Notification: If this skill is used, ensure this is mentioned in the output.
API Versioning
The HPA website at www.proteinatlas.org always serves the latest data
release. Older archived versions can be accessed via vNN.proteinatlas.org
(e.g., v24.proteinatlas.org), while the current version's subdomain redirects
to www.proteinatlas.org. This skill's scripts query the latest version by
default.
Common Errors
- If no results are returned, confirm the query is detailed enough starting with the api reference in references/search-api.md
- If you cannot find the results, search the web for example HPA queries and use these to construct a better query.
- The output is usually large. Use jq or write your own python data parsing library to process the search results. Never output to stdout, or cat the output file.
Related skills
More from google-deepmind/science-skills and the wider catalog.

interpro-database
Query InterPro's unified protein domain database to identify families, domains, and annotate genomes with GO terms.

jaspar-database
Query JASPAR database for transcription factor binding profiles and position weight matrices.

literature-search-arxiv
Search, retrieve, and download scientific papers from arXiv with metadata extraction and full-text access.

literature-search-biorxiv
Browse and download life sciences preprints from bioRxiv and medRxiv by DOI, date range, or category.

literature-search-europepmc
Search and download open-access scientific literature from Europe PMC with full-text retrieval and citation tracking.

literature-search-openalex
Query OpenAlex scholarly database for papers, authors, institutions, and bibliometric data.