Human protein atlas database

From MarceloClaro/OpenCode_Ecosystem · View interactive version

Human protein atlas database is an AI agent skill from the GitHub repository MarceloClaro/OpenCode_Ecosystem. Use when you want to retrieve semi-quantitative protein expression and spatial localisation data from the Human Protein Atlas (HPA).

How to use this skill

Skill file

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.

  1. User Notification: If LICENSE_NOTIFICATION.txt does not already exist in

this skill 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:

cancer types based on IHC staining (High, Medium, Low, or Not Detected).

been localized (e.g., nucleoplasm, mitochondria).

expression levels.

"elevated in amygdala" or "secreted proteins").

Do NOT use when you need to:

wild-type expression data and knows nothing about QTLs.

proteins.

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.

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:

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:

defaults to all available tissues).

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:

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:

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:

details.

Core Rules

database rather than accessing the database directly. The scripts

automatically enforce fair use and implement retry logic.

output.

Common Errors

with the api reference in references/search-api.md

use these to construct a better query.

library to process the search results. Never output to stdout, or cat the

output file.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.