Skip to content
cccskills
FreePublished on GitHub

human-protein-atlas-database

Look up human proteins in the Human Protein Atlas to see their abundance by tissue and location within cells. Retrieve expression levels reported as categories, search for matching genes, and compare protein findings with RNA expression data.

OriginalShow the original description

Use when you want to retrieve semi-quantitative protein expression and spatial localisation data from the Human Protein Atlas (HPA).

See how to install

Good for

  • Checking protein abundance across human tissues
  • Finding where a protein is located within cells
  • Comparing RNA and protein expression
  • Finding genes that match expression criteria

Files included (4)

  • SKILL.md6.3 KB
  • references/citation.bib2.7 KB
  • references/search-api.md5.8 KB
  • scripts/hpa_cli.py8.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Retrieve AlphaFold protein structures using a UniProt ID and summarize prediction confidence, boundaries of rigid structural regions, and likely disordered regions. Downloaded structure files and error estimates support further examination of the results.

  • Check confidence in a predicted protein structure
  • Identify boundaries of rigid structural regions
  • Assess regions likely to lack a stable structure
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

Create links that open specific genetic variants or genomic regions in AlphaGenome Atlas. Set tissue and display filters, build linked candidate tables, and open charts comparing predictions for reference and alternate DNA sequences.

  • Open a specific genetic variant in AlphaGenome Atlas
  • Explore a genomic region with selected display filters
  • Build a candidate variant table with clickable links
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

Analyze a genetic variant with the AlphaGenome API to predict changes in gene activity, DNA accessibility, and RNA splicing, the joining of RNA segments. Produce comparison plots and a report highlighting effects across tissues.

  • Explore predicted effects of non-coding genetic variants
  • Compare predicted gene activity changes across tissues
  • Visualize changes in RNA splicing
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

Use AlphaGenome scores to investigate predicted molecular effects of genetic variants, annotate variant files, and rank research candidates. Scan genomic regions for single nucleotide substitutions and retrieve matching gene structures, including exon and splice junction coordinates.

  • Inspecting predicted functional effects of individual variants
  • Annotating variant files and ranking research candidates
  • Scanning genomic regions for impactful single nucleotide substitutions
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

chembl-database

FreeSummary

Search ChEMBL for compounds, drug targets, and measured biological activity. Retrieve drug mechanisms, compare activity values in a common unit, find similar chemical structures, and download structure files or images for further analysis.

  • Find compounds and their drug targets
  • Compare IC50 values in a common unit
  • Check drug mechanisms and indications
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

Search ClinicalTrials.gov for studies by condition, treatment, location, recruitment status, or trial phase. Retrieve individual trial details and participation criteria, count matching studies, and explore trials run by a particular company or institution.

  • Finding recruiting trials by condition and location
  • Checking trial participation and exclusion criteria
  • Counting studies by condition, phase, or time period
google-deepmind/science-skills3.3KUpdated Oct 15, 2026

See all skills by google-deepmind

Report a problem with this skill