Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Retrieves cancer genomics data from cBioPortal's REST API: somatic mutations, copy number changes, expression, and clinical survival data.
68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
3 of 3 safety checks passed
Not used yet
cBioPortal for Cancer Genomics is a public repository of cancer genomics data including TCGA, ICGC, and hundreds of curated studies spanning 100+ cancer types. It provides somatic mutation profiles, copy number alterations (CNA), gene expression, clinical data (survival, stage, treatment history), and methylation data for tens of thousands of patient samples. Data is accessible via a REST API at https://www.cbioportal.org/api/ with no authentication required.
gnomad-database instead when you need population-level variant allele frequencies in healthy individualsopentargets-database; cBioPortal provides the genomic alteration data, not drug interaction annotationsrequests, pandas, matplotlibTP53), cBioPortal study IDs (e.g., tcga_brca), molecular profile IDstime.sleep(0.2) between batch requests for polite accesspip install requests pandas matplotlib
import requests
import pandas as pd
BASE_URL = "https://www.cbioportal.org/api"
def cbio_get(endpoint, params=None):
"""GET request to cBioPortal REST API, returns parsed JSON."""
r = requests.get(f"{BASE_URL}/{endpoint}", params=params,
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.