Skip to content
Skillpedia
Databases33k · #8959

geo-database

What it does

This skill lets your agent search and download data from NCBI's Gene Expression Omnibus. It is for researchers who need public expression datasets for transcriptomics analysis.

When to use it

  • ✓When you need to find public gene expression datasets on a topic.
  • ✓When you want to download the SOFT or matrix files for a GEO series.
  • ✓When you need sample or platform details for an existing GEO accession.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/geo-database/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/geo-database/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Find GEO datasets on breast cancer RNA-seq and download the matrix file for the most recent one.”

5 new skills a week. 1 minute to read.

How it works

The agent searches GEO by keyword or accession, then retrieves the series, sample, or platform files. It returns the data and metadata for analysis.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

GEO Database

Overview

The Gene Expression Omnibus (GEO) is NCBI's public repository for high-throughput gene expression and functional genomics data. GEO contains over 264,000 studies with more than 8 million samples from both array-based and sequence-based experiments.

When to Use This Skill

This skill should be used 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.

Core Capabilities

1. Understanding GEO Data Organization

GEO organizes data hierarchically using different accession types:

Series (GSE): A complete experiment with a set of related samples

  • Example: GSE123456
  • Contains experimental design, samples, and overall study information
  • Largest organizational unit in GEO
  • Current count: 264,928+ series

Sample (GSM): A single experimental sample or biological replicate

  • Example: GSM987654
  • Contains individual sample data, protocols, and metadata
  • Linked to platforms and series
  • Current count: 8,068,632+ samples

Platform (GPL): The microarray or sequencing platform used

  • Example: GPL570 (Affymetrix Human Genome U133 Plus 2.0 Array)
  • Describes the technology and probe/feature annotations
  • Shared across multiple experiments
  • Current count: 27,739+ platforms

DataSet (GDS): Curated collections with consistent formatting

  • Example: GDS5678
  • Experimentally-comparable samples organized by study design
  • Processed for differential analysis
  • Subset of GEO data (4,348 curated datasets)
  • Ideal for quick comparative analyses

Profiles: Gene-specific expression data linked to sequence features

  • Queryable by gene name or annotation
  • Cross-references to Entrez Gene
  • Enables gene-centric searches across all studies

2. Searching GEO Data

GEO DataSets Search:

Search for studies by keywords, organism, or experimental conditions:

from Bio import Entrez

# Configure Entrez (required)
Entrez.email = "your.email@example.com"

# Search for datasets
def search_geo_datasets(query, retmax=20):
    """Search GEO DataSets database"""
    handle = Entrez.esearch(
        db="gds",
        term=query,
        retmax=retmax,
        usehistory="y"
    )
    results = Entrez.read(handle)
    handle.close()
    return results

# Example searches
results = search_geo_datasets("breast cancer[MeSH] AND Homo sapiens[Organism]")
print(f"Found {results['Count']} datasets")

# Search by specific platform
results = search_geo_datasets("GPL570[Accession]")

# Search by study type
results = search_geo_datasets("expression profiling by array[DataSet Type]")

GEO Profiles Search:

Find gene-specific expression patterns:

# Search for gene expression profiles
def search_geo_profiles(gene_name, organism="Homo sapiens", retmax=100):
    """Search GEO Profiles for a specific gene"""
    query = f"{gene_name}[Gene Name] AND {organism}[Organism]"
    handle = Entrez.esearch(
        db="geoprofiles",
        term=query,
        retmax=retmax
    )
    results = Entrez.read(handle)
    handle.close()
    return results

# Find TP53 expression across studies
tp53_results = search_geo_profiles("TP53", organism="Homo sapiens")
print(f"Found {tp53_results['Count']} expression profiles for TP53")

Advanced Search Patterns:

# Combine multiple search terms
def advanced_geo_search(terms, operator="AND"):
    """Build complex search queries"""
    query = f" {operator} ".join(terms)
    return search_geo_datasets(query)

# Find recent high-throughput studies
search_terms = [
    "RNA-seq[DataSet Type]",
    "Homo sapiens[Organism]",
    "2024[Publication Date]"
]
results = advanced_geo_search(search_terms)

# Search by author and condition
search_terms = [
    "Smith[Author]",
    "diabetes[Disease]"
]
results = advanced_geo_search(search_terms)

3. Retrieving GEO Data with GEOparse (Recommended)

GEOparse is the primary Python library for accessing GEO data:

Installation:

uv pip install GEOparse

Basic Usage:

import GEOparse

# Download and parse a GEO Series
gse = GEOparse.get_GEO(geo="GSE123456", destdir="./data")

# Access series metadata
print(gse.metadata['title'])
print(gse.metadata['summary'])
print(gse.metadata['overall_design'])

# Access sample information
for gsm_name, gsm in gse.gsms.items():
    print(f"Sample: {gsm_name}")
    print(f"  Title:
FAQ

What do the GSE, GSM, and GPL codes mean?

GSE is a full study series, GSM is one sample, and GPL is the platform used.

How many studies are in GEO?

The skill says GEO holds over 264,000 studies and more than 8 million samples.

What file types can I download?

The skill mentions SOFT and Matrix files.

Details

Original description by the author

Access NCBI GEO for gene expression/genomics data. Search/download microarray and RNA-seq datasets (GSE, GSM, GPL), retrieve SOFT/Matrix files, for transcriptomics and expression analysis.

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8959
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills