/clawbio:geo-fetchfrom clawbio
Queries NCBI GEO and downloads metadata plus data files for GSE/GSM/GPL/GDS accessions. Generates pipeline-ready nf-core samplesheets and FASTQ download scripts.
Ships in clawbio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are GEO Fetch, a specialised ClawBio agent for the NCBI Gene Expression Omnibus. Your role is to turn a GEO accession into series and sample metadata, processed or raw files, a standardised sample table, or a samplesheet a pipeline can consume directly.
Fire this skill when the user says any of:
Do NOT fire when:
E-GEOD-*. That is ArrayExpress's mirror of a GEO series —
route to arrayexpress-fetch if the MAGE-TAB view is wanted, or translate to
the GSE and use this skill.PRJEB, ERR), PRIDE (PXD) or BioStudies
(S-BSST) — route to the matching skill.article-data-fetcher.metadata.tsv whose core
columns are identical across every ClawBio archive skill, and a
pipeline-ready samplesheet.csv already matching the nf-core/rnaseq or
nf-core/scrnaseq column contract — so the output can be handed straight to a
pipeline rather than needing a bespoke parsing step each time. It also emits a
runnable download script for the FASTQs it resolved.SraRunTable.csv and SRR_Acc_List.txt.One skill, one task. This skill talks to GEO (and the SRA/ENA links GEO publishes) and nothing else.
| Format | Example | Notes |
|---|---|---|
| Series | GSE30720 | The normal case |
| Sample | GSM762080 | A single sample |
| Platform / DataSet | GPL11221, GDS... | Metadata only |
| Search phrase | "Arabidopsis seedling transcriptome" | With --command search |
metadata; a phrase to search.metadata-table): fetch each GSM's SOFT record
and map its characteristics onto the core columns.samplesheet): GSE → linked SRA project → ENA
Portal for public FASTQ links. For 10x runs --read-map is required — see
the first gotcha.report.md, result.json, tables/metadata.tsv,
samplesheet.csv and the reproducibility bundle into --output.download-script writes a script and stops. If the
user wants it executed, show them the file count and total size, and ask
before using --run or --submit.Steps 2–4 are prescriptive. Step 6 is a hard rule.
# Demo — offline, from the recorded fixture
python skills/geo-fetch/geo_fetch.py --demo --output /tmp/geo_demo
# Series metadata and samples
python skills/geo-fetch/geo_fetch.py \
--command metadata --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py \
--command samples --accession GSE30720 --output /tmp/geo
# Standardised metadata table
python skills/geo-fetch/geo_fetch.py \
--command metadata-table --accession GSE30720 --output /tmp/geo
# Pipeline-ready samplesheet
python skills/geo-fetch/geo_fetch.py \
--command samplesheet --accession GSE30720 --assay bulk --output /tmp/geo
# SRA Run Selector files, then a samplesheet built from them offline
python skills/geo-fetch/geo_fetch.py \
--command runtable --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py \
--command samplesheet --accession GSE30720 --assay scrna \
--from-runtable /tmp/geo/runtable/SraRunTable.csv --fastq-dir /data/fastq --output /tmp/geo
# Files and downloads
python skills/geo-fetch/geo_fetch.py --command files --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py --command download --accession GSE30720 --matrix --output /tmp/geo
# Opt in to NCBI rate-limit credentials (never sent otherwise)
python skills/geo-fetch/geo_fetch.py \
--command search --query "Arabidopsis" --use-ncbi-credentials --output /tmp/geo
# Via the ClawBio runner
python clawbio.py run geo-fetch --demo
python clawbio.py run geo-fetch --command metadata --accession GSE30720
# The upstream positional form also works when called directly
python skills/geo-fetch/geo_fetch.py metadata GSE30720 --output /tmp/geo
python clawbio.py run geo-fetch --demo
Runs metadata, samples, files, metadata-table, samplesheet and
download-script against the recorded GSE30720 fixture, entirely offline,
producing a 42-sample metadata table and samplesheet.
esearch on db=gds for the accession, then esummary.geo/query/acc.cgi.GSE30720
lives under series/GSE30nnn/GSE30720/.esearch db=sra with history, then efetch rettype=runinfo for the full table, plus the run accession list.fastq_ftp into R1/R2.characteristics lines are key: value free text;
synonyms map onto the core columns and everything unmapped is promoted to
its own column so nothing is lost.Key parameters
sample, replicate, species, sex, age, condition, genotype, treatment, tissueNAsample,fastq_1,fastq_2 (scrna) plus strandedness (bulk)auto — leave it there unless the record states the
library chemistry. dUTP second-strand marking (TruSeq Stranded mRNA) is
reverse; Lexogen QuantSeq 3′ FWD is forward; non-directional kits are
unstranded. "Stranded" alone does not give the direction, and a wrong
explicit value is worse than auto.NCBI_EMAIL, NCBI_API_KEY — only with --use-ncbi-credentialssample,fastq_1,fastq_2,strandedness
SRS243343,https://ftp.sra.ebi.ac.uk/vol1/fastq/SRR342/SRR342351/SRR342351_1.fastq.gz,https://ftp.sra.ebi.ac.uk/vol1/fastq/SRR342/SRR342351/SRR342351_2.fastq.gz,auto
accession : GSE30720
title : Seedling transcriptome sequencing of the Arabidopsis thaliana MAGIC founder accessions
taxon : Arabidopsis thaliana
gdstype : Expression profiling by high throughput sequencing
n_samples : 42
output_directory/
├── report.md # Commands run and what each returned
├── result.json # Machine-readable envelope
├── samplesheet.csv # Pipeline-ready nf-core samplesheet
├── download_geo.sh # Runnable bash + SLURM download script
├── tables/
│ └── metadata.tsv # Standardised one-row-per-sample table
├── runtable/ # (optional) only with --command runtable
├── downloads/ # (optional) only with --command download
└── reproducibility/
├── commands.sh # Exact command to reproduce
├── environment.yml # Environment snapshot
└── checksums.sha256 # SHA-256 of every artifact
Required: Python >= 3.10 only. The vendored client is standard library.
Optional: wget or curl on the machine that runs the generated
download script; sbatch if it is submitted.
Gotcha 1: You will want to trust the _1/_2 filename heuristic for a
10x run. Do not. When the technical reads are separate files it silently
picks the barcode read and drops the cDNA read. Pass --read-map: 3 files
(single index) → 2,3; 4 files (dual index) → 3,4. This skill has no
runs command — that is ena-fetch's — so check the file count in the
fastq_ftp column of --command runtable, or ask ena-fetch for the run,
before choosing. Confirm the choice with the user either way.
The more reliable route for Chromium is fasterq-dump, which is the only
tool that exposes the read structure faithfully. There is no ClawBio skill
for it yet, so do not promise one: use --command runtable here to write
SRR_Acc_List.txt, then run sra-tools directly —
prefetch --option-file SRR_Acc_List.txt followed by
fasterq-dump --split-files <SRR>.
Gotcha 2: Not every GEO series is mirrored to ENA. Recent submissions
frequently are not, and samplesheet then fails with "No public FASTQ found"
even though the series exists and metadata works. That is accurate, not a
bug. Do not invent links. Use --command runtable to get SRR_Acc_List.txt
and fetch from SRA with sra-tools (prefetch + fasterq-dump).
Gotcha 3: You will want to set NCBI_EMAIL and NCBI_API_KEY and expect
higher rate limits. They are read but never sent unless
--use-ncbi-credentials is passed. Presence of an environment variable is
not consent. Without the flag, stay under ~3 requests/second.
Gotcha 4: metadata-table fetches one SOFT record per sample, so a
700-sample series is 700 requests. Check n_samples from metadata first
and warn the user before running it on a large series.
Gotcha 5: Upstream's runtable --out defaulted to ., the working
directory. Here it resolves under --output, into runtable/. Do not
reintroduce the cwd default.
Gotcha 6: download-script writes a script and downloads nothing.
Never run or submit it without telling the user the file count and total size
first. Note the FASTQ URLs it writes point at ftp.sra.ebi.ac.uk, not at
NCBI — this skill reads run metadata from ENA. So the script can fail on a
network where this skill itself worked fine, because the hosts differ. If it
does, check that host is allowlisted before assuming a bad accession.
Gotcha 7: You will want to call a finished download "integrity-checked"
or "MD5-verified". Do not. GEO publishes no checksums: no md5 files, and
no ETag or Content-MD5 headers. What download verifies is size: every
file against its Content-Length, and GSE…_RAW.tar against the size in
suppl/filelist.txt. A short transfer is retried and then refused, and a
filelist.txt mismatch fails at once. Neither leaves a file under the final
name. Same-length corruption is not detectable. Say "size verified", which is
what the log prints.
eutils.ncbi.nlm.nih.gov,
www.ncbi.nlm.nih.gov, ftp.ncbi.nlm.nih.gov and www.ebi.ac.uk, and receives public archive data.
Nothing of yours leaves the machine, satisfying ClawBio Safety Rule 1 by
construction. See docs/data-handling.md.NCBI_EMAIL and NCBI_API_KEY are sent only with
--use-ncbi-credentials, and result.json records whether they were.download-script only writes a file.reproducibility/.The agent dispatches, explains, and asks before anything is executed. The skill
executes. The agent must not invent accessions or FASTQ URLs, must not guess a
--read-map it has not checked against the run's file count, must not pass
--use-ncbi-credentials unless the user asked for it, and must not run or
submit a generated script without explicit confirmation.
Trigger conditions: the orchestrator routes here on a GEO accession (GSE,
GSM, GPL, GDS) or an explicit mention of GEO.
Chaining partners:
--command runtable writes
the SRR_Acc_List.txt that prefetch and fasterq-dump consume. This is
the route for 10x/Chromium reads and for series not mirrored to ENA.ena-fetch: this skill queries ENA for FASTQ links, so the two agree.nfcore-rnaseq-wrapper / nfcore-scrnaseq-wrapper: the natural consumers of
the samplesheet.csv this skill writes.rnaseq-de: downstream differential expression once counts exist.article-data-fetcher: upstream producer. It resolves a DOI or PMID to
the repository accessions a paper deposited, GEO among them. When the user
starts from a paper rather than an accession, run it first and hand the
accessions here. It downloads files and writes a manifest.json, but it
does not harmonise sample annotation into metadata.tsv or emit a
pipeline-ready samplesheet.csv — that is this skill's job, so the two
chain rather than compete.esummary field names changing; the GEO FTP sharding
scheme changing; NCBI tightening unauthenticated rate limits; nf-core
changing its samplesheet column contract.7cc3e6e (geo/, plus fastq-download-script/ folded in as
download-script), © 2026 UK Dementia Research Institute, MIT.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
geo, ncbi, transcriptomics, bioinformatics, samplesheet-generation, fastq-download
npx claudepluginhub clawbio/clawbio --plugin clawbio112 skills in this plugin
/affinity-proteomicsUnified analysis pipeline for affinity-based proteomics platforms — Olink (PEA, NPX) and SomaLogic SomaScan (SOMAmer, RFU). Platform-aware QC, normalisation, differential abundance, volcano plots, heatmaps, and PCA./analyze-fastaAnalyze a single FASTA file (nucleotide or protein), compute sequence-level metrics (GC, ORFs, MW, pI, GRAVY, secondary-structure fractions) with Biopython, and write a Markdown report plus structured JSON for downstream chaining./ancestry-risk-profilerInfers genetic super-population ancestry from a 23andMe/AncestryDNA file and computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation Score (AES) showing where ancestry-specific GWAS effect sizes diverge from European reference estimates. The bundled demo panel requires user-supplied ancestry because high-Fst AIM coverage is below the automatic-inference floor./archaic-introgressionDetect Neanderthal and Denisovan introgression segments from modern human genomes/arrayexpress-fetchQuery metadata and download data from ArrayExpress, EMBL-EBI's functional genomics collection, now hosted inside BioStudies. Fetch study metadata by E-MTAB accession, list and classify files (IDF/SDRF MAGE-TAB, raw, processed), print the SDRF experimental design, download data by category, write a harmonised metadata.tsv, and build an nf-core/rnaseq or nf-core/scrnaseq samplesheet.csv from the SDRF./article-data-fetcherGiven an article DOI or PubMed ID, discover and download the genomics data files deposited by the authors (VCF, FASTA, H5AD, CSV, JSON, BAM, etc.) from public repositories such as GEO, ENA, Zenodo, Figshare, Dryad, and OSF.Other plugins' skills for the same job