cbioportal
Query cBioPortal for cancer genomics data including somatic mutations, copy number alterations, gene expression, and survival data across hundreds of cancer…
Skill by LUNARTECH-X
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lunartech-x-cbioportal
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cbioportal
What's inside
- Skill name
cbioportal- Description
- Query cBioPortal for cancer genomics data including somatic mutations, copy number alterations, gene expression, and survival data across hundreds of cancer studies. Essential for cancer target validation, oncogene/tumor suppressor analysis, and patient-level genomic profiling.
- License
- LGPL-3.0
- Metadata
- version: 1.0.0 · skill-author: AlterLab
- Instructions
- 361 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- SKILL.md
- study_exploration.md · references/
SKILL.md (first lines)
# cBioPortal Database
## Overview
cBioPortal for Cancer Genomics (https://www.cbioportal.org/) is an open-access resource for exploring, visualizing, and analyzing multidimensional cancer genomics data. It hosts data from The Cancer Genome Atlas (TCGA), AACR Project GENIE, MSK-IMPACT, and hundreds of other cancer studies — covering mutations, copy number alterations (CNA), structural variants, mRNA/protein expression, methylation, and clinical data for thousands of cancer samples.
**Key resources:**
- cBioPortal website: https://www.cbioportal.org/
- REST API: https://www.cbioportal.org/api/swagger-ui/index.html
- API docs (Swagger): https://www.cbioportal.org/api/swagger-ui/index.html
- Python client: `bravado` or `requests`
- GitHub: https://github.com/cBioPortal/cbioportal
## When to Use This Skill
Use cBioPortal when:
- **Mutation landscape**: What fraction of a cancer type has mutations in a specific gene?
- **Oncogene/TSG validation**: Is a gene frequently mutated, amplified, or deleted in cancer?
- **Co-mutation patterns**: Are mutations in gene A and gene B mutually exclusive or co-occurring?
- **Survival analysis**: Do mutations in a gene associate with better or worse patient outcomes?
- **Alteration profiles**: What types of alterations (missense, truncating, amplification, deletion) affect a gene?
- **Pan-cancer analysis**: Compare alteration frequencies across cancer types
- **Clinical associations**: Link genomic alterations to clinical variables (stage, grade, treatment response)
- **TCGA/GENIE exploration**: Systematic access to TCGA and clinical sequencing datasets
## Core Capabilities
### 1. cBioPortal REST API
Base URL: `https://www.cbioportal.org/api`
The API is RESTful, returns JSON, and requires no API key for public data.
```python
import requests
BASE_URL = "https://www.cbioportal.org/api"
HEADERS = {"Accept": "application/json", "Content-Type": "application/json"}
def cbioportal_get(endpoint, params=None):
url = f"{BASE_URL}/{endpoint}"
response = requests.get(url, params=params, headers=HEADERS)
response.raise_for_status()
return response.json()
def cbioportal_post(endpoint, body):
url = f"{BASE_URL}/{endpoint}"
response = requests.post(url, json=body, headers=HEADERS)
response.raise_for_status()
return response.json()
```
### 2. Browse Studies
```python
def get_all_studies():
"""List all available cancer studies."""
return cbioportal_get("studies", {"pageSize": 500})
# Each study has:
# studyId: unique identifier (e.g., "brca_tcga")
# name: human-readable name
# description: dataset description
# cancerTypeId: cancer type abbreviation
# referenceGenome: GRCh37 or GRCh38
# pmid: associated publication
studies = get_all_studies()
print(f"Total studies: {len(studies)}")
# Common TCGA study IDs:
# brca_tcga, luad_tcga, coadread_tcga, gbm_tcga, prad_tcga,
# skcm_tcga, blca_tcga, hnsc_tcga, lihc_tcga, stad_tcga
# Filter for TCGA studies
tcga_studies = [s for s in studies if "tcga" in s["studyId"]]
print([s["studyId"] for s in tcga_studies[:10]])
```
### 3. Molecular Profiles
Each study has multiple molecular profiles (mutation, CNA, expression, etc.):
```python
def get_molecular_profiles(study_id):
"""Get all molecular profiles for a study."""
return cbioportal_get(f"studies/{study_id}/molecular-profiles")
profiles = get_molecular_profiles("brca_tcga")
for p in profiles:
print(f" {p['molecularProfileId']}: {p['name']} ({p['molecularAlterationType']})")
# Alteration types:
# MUTATION_EXTENDED — somatic mutations
# COPY_NUMBER_ALTERATION — CNA (GISTIC)
# MRNA_EXPRESSION — mRNA expression
# PROTEIN_LEVEL — RPPA protein expression
# STRUCTURAL_VARIANT — fusions/rearrangements
```
### 4. Mutation Data
```python
def get_mutations(molecular_profile_id, entrez_gene_ids, sample_list_id=None):
"""Get mutations for specified genes in a molecular profile."""
body = {
"entrezGeneIds": entrez_gene_ids,
"sampleListId": sample_list_id or molecular_profile_id.replace("_mutations", "_all")
}
return cbioportal_post(
f"molecular-profiles/{molecular_profile_id}/mutations/fetch",
body
)
# BRCA1 Entrez ID is 672, TP53 is 7157, PTEN is 5728
mutations = get_mutations("brca_tcga_mutations", entrez_gene_ids=[7157]) # TP53
# Each mutation record contains:From LUNARTECH-X/superpowers, LGPL-3.0.
More from LUNARTECH-X/superpowers
- 0.556score
adaptyv
LUNARTECH-X
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
arxiv
LUNARTECH-X
Search and retrieve preprints from arXiv via the Atom API.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
academic-paper
LUNARTECH-X
12-agent academic paper writing pipeline.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
autoskill
LUNARTECH-X
Observe the user's screen via screenpipe, detect repeated research workflows, match them against existing scientific-agent-skills, and draft new skills (or…
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
biorxiv
LUNARTECH-X
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
database-lookup
LUNARTECH-X
Search 78 public scientific, biomedical, materials science, and economic databases via REST APIs.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
datacommons
LUNARTECH-X
Work with Data Commons, a platform providing programmatic access to public statistical data from global sources.
SkillCFreshness: C★ 17Claude Code +9 - 0.553score
chembl
LUNARTECH-X
Query ChEMBL bioactive molecules and drug discovery data.
SkillCFreshness: C★ 17Claude Code +9 - 0.553score
cosmic
LUNARTECH-X
Access COSMIC cancer mutation database.
SkillCFreshness: C★ 17Claude Code +9 - 0.553score
depmap
LUNARTECH-X
Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles.
SkillCFreshness: C★ 17Claude Code +9 - 0.553score
bindingdb
LUNARTECH-X
Query BindingDB for measured drug-target binding affinities (Ki, Kd, IC50, EC50).
SkillCFreshness: C★ 17Claude Code +9 - 0.553score
clinvar
LUNARTECH-X
Query NCBI ClinVar for variant clinical significance.
SkillCFreshness: C★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- May 15, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- LGPL-3.0
- Repository
- github.com/LUNARTECH-X/superpowers
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from LUNARTECH-X
- 0.556score
autoskill
LUNARTECH-X
Observe the user's screen via screenpipe, detect repeated research workflows, match them against existing scientific-agent-skills, and draft new skills (or…
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
database-lookup
LUNARTECH-X
Search 78 public scientific, biomedical, materials science, and economic databases via REST APIs.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
arxiv
LUNARTECH-X
Search and retrieve preprints from arXiv via the Atom API.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
academic-paper
LUNARTECH-X
12-agent academic paper writing pipeline.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
biorxiv
LUNARTECH-X
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 17Claude Code +9 - 0.556score
datacommons
LUNARTECH-X
Work with Data Commons, a platform providing programmatic access to public statistical data from global sources.
SkillCFreshness: C★ 17Claude Code +9
Cite this page
cbioportal skill. Agent Mart. https://agentmart.dev/skills/lunartech-x-cbioportal (last updated 2026-10-24)