GEO Database
Overview
The Gene Expression Omnibus (GEO) is NCBI's public repository for high-throughput gene expression and functional genomics data. It holds hundreds of thousands of studies (Series) and millions of samples from both array-based and sequence-based experiments. For current totals see the GEO browser at https://www.ncbi.nlm.nih.gov/geo/.
When to Use This Skill
Use this skill when searching for gene expression datasets, retrieving experimental data, downloading raw and processed files, querying expression profiles, or integrating GEO data into computational analysis workflows.
Does NOT Trigger
| Scenario |
Use Instead |
| Raw FASTQ reads by SRA/ENA run accession |
alterlab-ena |
| Reference normal-tissue expression (median TPM, eQTLs) |
alterlab-gtex |
| Harmonized single-cell expression across studies (CELLxGENE Census) |
alterlab-cellxgene |
| Running differential expression on a count matrix you already have |
alterlab-pydeseq2 |
| Tumor mutations / copy number in cancer cohorts |
alterlab-cbioportal |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-ena) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Core Workflow
- Search for relevant studies (E-utilities /
Bio.Entrez) → see references/searching.md.
- Retrieve a series with GEOparse:
GEOparse.get_GEO(geo="GSE...", destdir="./data") → see references/geoparse_usage.md.
- Extract the expression matrix via
gse.pivot_samples('VALUE') (genes × samples).
- Analyze — QC, differential expression, clustering, meta-analysis → see
references/expression_analysis.md.
For bulk downloads, skip GEOparse and pull files directly over FTP → see references/data_access.md.
GEO Data Organization
GEO organizes data hierarchically using different accession types:
- Series (GSE) — a complete experiment with related samples (e.g.
GSE123456).
Largest organizational unit. Holds experimental design, samples, study info.
- Sample (GSM) — a single experimental sample / biological replicate
(e.g.
GSM987654). Linked to platforms and series.
- Platform (GPL) — the microarray or sequencing platform (e.g.
GPL570,
Affymetrix Human Genome U133 Plus 2.0 Array). Shared across experiments.
- DataSet (GDS) — curated, consistently-formatted collections (e.g.
GDS5678)
processed for differential analysis. Ideal for quick comparative analyses, but
the curated GDS set is legacy and no longer growing — most recent studies exist
only as GSE Series, so prefer GSE for new work.
- Profiles — gene-specific expression data linked to sequence features,
queryable by gene name, cross-referenced to Entrez Gene.
Access Methods (routing)
- GEOparse (recommended) — easiest series-level access; download, parse
metadata, extract expression matrices, supplementary files, filter samples.
→
references/geoparse_usage.md
- E-utilities (
Bio.Entrez) — metadata searching and batch queries across
gds, geoprofiles. Always set Entrez.email. → references/searching.md
- Direct FTP / wget / curl — bulk downloads of series matrix, SOFT, MINiML,
and supplementary files; no rate limits. →
references/data_access.md
- GEO2R web tool — no-code differential expression analysis in the browser at
https://www.ncbi.nlm.nih.gov/geo/geo2r/?acc=GSExxxxx; generates reproducible
R scripts. Useful for exploratory analysis before downloading.
Installation and Setup
No install step: run Python through uv run, which resolves the packages for that run
(this skill's tools allow uv, not a bare python):
uv run --python ">=3.11" --with GEOparse python get_series.py # GEOparse (pulls pandas, numpy)
uv run --python ">=3.11" --with GEOparse --with biopython --with scipy --with statsmodels python analysis.py
# add --with scikit-learn / --with matplotlib / --with seaborn as the script needs them
Configure NCBI E-utilities access. No key or account is needed: NCBI asks every
client to identify itself with a contact email, and an optional API key only raises
the rate limit from 3 to 10 requests/second:
import os
from Bio import Entrez
Entrez.email = "your.email@example.com" # contact email NCBI asks for (no account)
Entrez.api_key = os.environ.get("NCBI_API_KEY") # optional; None = keyless, 3 req/s
Key Concepts
- SOFT (Simple Omnibus Format in Text): GEO's primary text format with
metadata and data tables. Easily parsed by GEOparse.
- MINiML (MIAME Notation in Markup Language): XML format for programmatic
access and data exchange.
- Series Matrix: tab-delimited expression matrix (samples as columns,
genes/probes as rows). Fastest format for getting expression data.
- MIAME Compliance: minimum standardized annotation GEO enforces on
submissions.
- Expression Value Types: raw signal, normalized, or log-transformed — always
check platform and processing methods.
- Platform Annotation: maps probe/feature IDs to genes; essential for
biological interpretation.
Common Use Cases
- Transcriptomics research — download expression data, compare profiles
across studies, identify DEGs, run meta-analyses.
- Drug response studies — analyze post-treatment expression changes, identify
response biomarkers, build sensitivity models.
- Disease biology — disease vs. normal expression, disease signatures,
patient subgroup/stage comparisons, expression–outcome correlation.
- Biomarker discovery — screen diagnostic/prognostic markers, validate across
cohorts, integrate with clinical data.
Rate Limiting and Best Practices
- E-utilities limits: 3 req/s without an API key, 10 req/s with one. Insert
delays:
time.sleep(0.34) (no key) or time.sleep(0.1) (with key).
- FTP: no rate limits — preferred for bulk downloads (
wget -r for whole
directories).
- GEOparse caching: files cached in
destdir; subsequent calls reuse them.
- Method selection: GEOparse for series-level access, E-utilities for search /
batch metadata, FTP for direct/bulk file pulls. Cache locally; always set
Entrez.email with Biopython.
Important Notes
- Data quality: GEO accepts user-submitted data of varying quality. Check
platform annotation and processing methods, verify metadata and design, watch
for batch effects, and consider reprocessing raw data.
- File sizes: series matrix files can exceed 1 GB; supplementary files (e.g.
CEL) can be very large. Plan disk space; download incrementally.
- Citation: GEO data is free for research. Cite original studies plus the GEO
database (Barrett et al. 2013, Nucleic Acids Research). Check per-dataset
usage restrictions and follow NCBI guidelines.
- Common pitfalls: platforms use different probe IDs (need annotation
mapping); values may be raw/normalized/log-transformed (check metadata); sample
metadata is inconsistently formatted; older submissions may lack series matrix
files; platform annotations may be outdated.
Reference Index
references/searching.md — E-utilities search (datasets, profiles, advanced
queries, search→summary→fetch workflow, batch metadata).
references/geoparse_usage.md — GEOparse install/usage, expression matrices,
supplementary files, sample filtering, caching.
references/data_access.md — direct FTP access (ftplib, wget, curl) and the
accession-to-path rule.
references/expression_analysis.md — QC/preprocessing, differential expression,
correlation/clustering, batch processing, cross-study meta-analysis.
references/geo_reference.md — in-depth technical reference: E-utilities API
endpoints, SOFT/MINiML format docs, FTP directory structure, normalization
pipelines, platform quirks, and error-handling troubleshooting.
Additional Resources
Scripts
scripts/query_geo.py — runnable helper for GEO DataSets via NCBI E-utilities (no key; NCBI_API_KEY lifts the rate limit). Has a PEP 723 inline-dependency header, so uv run installs requests automatically:
uv run scripts/query_geo.py search "breast cancer AND Homo sapiens[ORGN]" --retmax 5
uv run scripts/query_geo.py summary 200000001,200000002
1---2name: alterlab-geo3description: Access NCBI GEO (Gene Expression Omnibus) for gene expression and functional genomics data — search and download microarray and RNA-seq datasets by GSE, GSM, GPL, or GDS accession and retrieve SOFT, MINiML, and series matrix files. Use when locating public expression datasets, fetching processed expression matrices, downloading a study's supplementary files, or sourcing per-study transcriptomics data for differential-expression analysis. For raw FASTQ sequencing reads by SRA/ENA run accession use alterlab-ena; for reference tissue-expression baselines (median TPM across human tissues) use alterlab-gtex; for cancer cohort somatic mutations and copy-number use alterlab-cbioportal. Part of the AlterLab Academic Skills suite.4license: MIT5allowed-tools: Read WebFetch Bash(curl:*) Bash(uv:*)6compatibility: No API key required. Keyless NCBI E-utilities REST API (db=gds, 3 requests/s; NCBI asks for a contact email, no account) and the GEO FTP/HTTPS download tree; an optional NCBI_API_KEY raises the limit to 10 requests/s7metadata:8 source: https://skillmd.com/skills/alterlab-ieu/alterlab-geo9 skill-author: AlterLab10 version: "1.0.2"11 last_updated: "2026-10-22"12 credentials: "optional: NCBI_API_KEY (raises E-utilities from 3 to 10 requests/s)"13---1415# GEO Database1617## Overview1819The Gene Expression Omnibus (GEO) is NCBI's public repository for high-throughput gene expression and functional genomics data. It holds hundreds of thousands of studies (Series) and millions of samples from both array-based and sequence-based experiments. For current totals see the GEO browser at https://www.ncbi.nlm.nih.gov/geo/.2021## When to Use This Skill2223Use this skill when searching for gene expression datasets, retrieving experimental data, downloading raw and processed files, querying expression profiles, or integrating GEO data into computational analysis workflows.2425### Does NOT Trigger2627| Scenario | Use Instead |28|----------|-------------|29| Raw FASTQ reads by SRA/ENA run accession | `alterlab-ena` |30| Reference normal-tissue expression (median TPM, eQTLs) | `alterlab-gtex` |31| Harmonized single-cell expression across studies (CELLxGENE Census) | `alterlab-cellxgene` |32| Running differential expression on a count matrix you already have | `alterlab-pydeseq2` |33| Tumor mutations / copy number in cancer cohorts | `alterlab-cbioportal` |3435**Hand-off rule.** When the request matches a row above, open your answer by naming that skill by its exact id (for example `alterlab-ena`) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.3637## Core Workflow38391. **Search** for relevant studies (E-utilities / `Bio.Entrez`) → see `references/searching.md`.402. **Retrieve** a series with GEOparse: `GEOparse.get_GEO(geo="GSE...", destdir="./data")` → see `references/geoparse_usage.md`.413. **Extract** the expression matrix via `gse.pivot_samples('VALUE')` (genes × samples).424. **Analyze** — QC, differential expression, clustering, meta-analysis → see `references/expression_analysis.md`.4344For bulk downloads, skip GEOparse and pull files directly over FTP → see `references/data_access.md`.4546## GEO Data Organization4748GEO organizes data hierarchically using different accession types:4950- **Series (GSE)** — a complete experiment with related samples (e.g. `GSE123456`).51 Largest organizational unit. Holds experimental design, samples, study info.52- **Sample (GSM)** — a single experimental sample / biological replicate53 (e.g. `GSM987654`). Linked to platforms and series.54- **Platform (GPL)** — the microarray or sequencing platform (e.g. `GPL570`,55 Affymetrix Human Genome U133 Plus 2.0 Array). Shared across experiments.56- **DataSet (GDS)** — curated, consistently-formatted collections (e.g. `GDS5678`)57 processed for differential analysis. Ideal for quick comparative analyses, but58 the curated GDS set is legacy and no longer growing — most recent studies exist59 only as GSE Series, so prefer GSE for new work.60- **Profiles** — gene-specific expression data linked to sequence features,61 queryable by gene name, cross-referenced to Entrez Gene.6263## Access Methods (routing)6465- **GEOparse (recommended)** — easiest series-level access; download, parse66 metadata, extract expression matrices, supplementary files, filter samples.67 → `references/geoparse_usage.md`68- **E-utilities (`Bio.Entrez`)** — metadata searching and batch queries across69 `gds`, `geoprofiles`. Always set `Entrez.email`. → `references/searching.md`70- **Direct FTP / wget / curl** — bulk downloads of series matrix, SOFT, MINiML,71 and supplementary files; no rate limits. → `references/data_access.md`72- **GEO2R web tool** — no-code differential expression analysis in the browser at73 `https://www.ncbi.nlm.nih.gov/geo/geo2r/?acc=GSExxxxx`; generates reproducible74 R scripts. Useful for exploratory analysis before downloading.7576## Installation and Setup7778No install step: run Python through `uv run`, which resolves the packages for that run79(this skill's tools allow `uv`, not a bare `python`):8081```bash82uv run --python ">=3.11" --with GEOparse python get_series.py # GEOparse (pulls pandas, numpy)83uv run --python ">=3.11" --with GEOparse --with biopython --with scipy --with statsmodels python analysis.py84# add --with scikit-learn / --with matplotlib / --with seaborn as the script needs them85```8687Configure NCBI E-utilities access. No key or account is needed: NCBI asks every88client to identify itself with a contact email, and an optional API key only raises89the rate limit from 3 to 10 requests/second:9091```python92import os93from Bio import Entrez9495Entrez.email = "your.email@example.com" # contact email NCBI asks for (no account)96Entrez.api_key = os.environ.get("NCBI_API_KEY") # optional; None = keyless, 3 req/s97```9899## Key Concepts100101- **SOFT (Simple Omnibus Format in Text):** GEO's primary text format with102 metadata and data tables. Easily parsed by GEOparse.103- **MINiML (MIAME Notation in Markup Language):** XML format for programmatic104 access and data exchange.105- **Series Matrix:** tab-delimited expression matrix (samples as columns,106 genes/probes as rows). Fastest format for getting expression data.107- **MIAME Compliance:** minimum standardized annotation GEO enforces on108 submissions.109- **Expression Value Types:** raw signal, normalized, or log-transformed — always110 check platform and processing methods.111- **Platform Annotation:** maps probe/feature IDs to genes; essential for112 biological interpretation.113114## Common Use Cases115116- **Transcriptomics research** — download expression data, compare profiles117 across studies, identify DEGs, run meta-analyses.118- **Drug response studies** — analyze post-treatment expression changes, identify119 response biomarkers, build sensitivity models.120- **Disease biology** — disease vs. normal expression, disease signatures,121 patient subgroup/stage comparisons, expression–outcome correlation.122- **Biomarker discovery** — screen diagnostic/prognostic markers, validate across123 cohorts, integrate with clinical data.124125## Rate Limiting and Best Practices126127- **E-utilities limits:** 3 req/s without an API key, 10 req/s with one. Insert128 delays: `time.sleep(0.34)` (no key) or `time.sleep(0.1)` (with key).129- **FTP:** no rate limits — preferred for bulk downloads (`wget -r` for whole130 directories).131- **GEOparse caching:** files cached in `destdir`; subsequent calls reuse them.132- **Method selection:** GEOparse for series-level access, E-utilities for search /133 batch metadata, FTP for direct/bulk file pulls. Cache locally; always set134 `Entrez.email` with Biopython.135136## Important Notes137138- **Data quality:** GEO accepts user-submitted data of varying quality. Check139 platform annotation and processing methods, verify metadata and design, watch140 for batch effects, and consider reprocessing raw data.141- **File sizes:** series matrix files can exceed 1 GB; supplementary files (e.g.142 CEL) can be very large. Plan disk space; download incrementally.143- **Citation:** GEO data is free for research. Cite original studies plus the GEO144 database (Barrett et al. 2013, *Nucleic Acids Research*). Check per-dataset145 usage restrictions and follow NCBI guidelines.146- **Common pitfalls:** platforms use different probe IDs (need annotation147 mapping); values may be raw/normalized/log-transformed (check metadata); sample148 metadata is inconsistently formatted; older submissions may lack series matrix149 files; platform annotations may be outdated.150151## Reference Index152153- `references/searching.md` — E-utilities search (datasets, profiles, advanced154 queries, search→summary→fetch workflow, batch metadata).155- `references/geoparse_usage.md` — GEOparse install/usage, expression matrices,156 supplementary files, sample filtering, caching.157- `references/data_access.md` — direct FTP access (ftplib, wget, curl) and the158 accession-to-path rule.159- `references/expression_analysis.md` — QC/preprocessing, differential expression,160 correlation/clustering, batch processing, cross-study meta-analysis.161- `references/geo_reference.md` — in-depth technical reference: E-utilities API162 endpoints, SOFT/MINiML format docs, FTP directory structure, normalization163 pipelines, platform quirks, and error-handling troubleshooting.164165## Additional Resources166167- **GEO Website:** https://www.ncbi.nlm.nih.gov/geo/168- **GEO Submission Guidelines:** https://www.ncbi.nlm.nih.gov/geo/info/submission.html169- **GEOparse Documentation:** https://geoparse.readthedocs.io/170- **E-utilities Documentation:** https://www.ncbi.nlm.nih.gov/books/NBK25501/171- **GEO FTP Site:** https://ftp.ncbi.nlm.nih.gov/geo/ (same tree as ftp://ftp.ncbi.nlm.nih.gov/geo/)172- **GEO2R Tool:** https://www.ncbi.nlm.nih.gov/geo/geo2r/173- **NCBI API Keys:** https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/174- **Biopython Tutorial:** https://biopython.org/DIST/docs/tutorial/Tutorial.html175176## Scripts177178`scripts/query_geo.py` — runnable helper for GEO DataSets via NCBI E-utilities (no key; `NCBI_API_KEY` lifts the rate limit). Has a PEP 723 inline-dependency header, so `uv run` installs `requests` automatically:179180```bash181uv run scripts/query_geo.py search "breast cancer AND Homo sapiens[ORGN]" --retmax 5182uv run scripts/query_geo.py summary 200000001,200000002183```