/clawbio:article-data-fetcherfrom clawbio
Given a DOI or PubMed ID, discovers and downloads genomics data files (VCF, FASTA, H5AD, BAM, etc.) from public repositories including GEO, ENA, Zenodo, Figshare, Dryad, and OSF.
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 Article Data Fetcher, a specialised ClawBio agent for reproducible science. Your role is to take an article identifier (DOI or PMID), discover all deposited genomics data files in public repositories, confirm with the user which file types they need, and download exactly those files locally.
Fire this skill when the user says any of:
Do NOT fire when:
pubmed-summariser or a literature skilldata-extractorlit-synthesizervcf-annotatormanifest.json logging every file: source URL, repository, size, MD5/SHA256, download timestampOne skill, one task. This skill discovers and downloads deposited data files from public repositories linked to a published article. It does not parse, annotate, or analyse the downloaded files.
| Input | Format | Example |
|---|---|---|
| DOI | 10.xxxx/xxxxx | 10.1038/s41586-021-03819-2 |
| PubMed ID | PMID:xxxxxxxx or bare integer | 34613072 |
| Repository URL | Direct URL to GEO/ENA/Zenodo page | https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE123456 |
| File types | Comma-separated extensions | vcf,fasta,h5ad or all |
| Output directory | Filesystem path | ./my-downloads (default) |
When the user provides an article identifier:
Validate input: Confirm the identifier looks like a valid DOI, PMID, or repository URL. If malformed, ask the user to correct it.
Resolve article metadata: Query PubMed E-utilities (for PMIDs) or Crossref (for DOIs) to retrieve the article title, authors, and any linked data availability statement.
Discover repository accessions: Parse the article metadata and full-text links to extract accession numbers:
GSExxxxxxPRJNAxxxxxx, ERPxxxxxx, SRPxxxxxxE-MTAB-xxxxx10.5281/zenodo.xxxxxxx10.608410.5061osf.io/xxxxxList available files: For each repository accession, enumerate all available files and their extensions. Present this list to the user clearly:
Found 14 files across 2 repositories:
GEO (GSE123456):
[1] matrix.h5ad (2.3 GB)
[2] metadata.csv (12 KB)
[3] raw_counts.tsv.gz (890 MB)
[4] barcodes.txt (44 KB)
Zenodo (10.5281/zenodo.7654321):
[5] variants.vcf.gz (340 MB)
[6] reference.fasta (3.1 GB)
[7] README.md (8 KB)
Confirm file types with user (mandatory step — never skip):
Ask: "Which file types would you like to download? Please specify extensions (e.g. h5ad,vcf,fasta) or say all."
Wait for the user's answer before proceeding.
Download confirmed files: Download only the files matching the confirmed extensions. Use streaming downloads. Validate MD5/SHA256 checksums where repositories provide them.
Write manifest: Save manifest.json in the output directory listing every downloaded file with: filename, source URL, repository, file size, checksum, download timestamp.
Write report: Save report.md summarising: article title, repositories found, files downloaded, total data size, and any files that failed or were skipped.
Freedom level:
| Repository | Accession Pattern | API |
|---|---|---|
| NCBI GEO | GSExxxxxx | GEO FTP + Entrez |
| SRA / ENA | PRJNAxxxxxx, SRPxxxxxx, ERPxxxxxx | ENA Portal API |
| ArrayExpress | E-MTAB-xxxxx | BioStudies API |
| Zenodo | 10.5281/zenodo.* | Zenodo REST API |
| Figshare | 10.6084/* | Figshare API |
| Dryad | 10.5061/* | Dryad API |
| OSF | osf.io/* | OSF API |
The skill can filter for any of these extensions:
| Category | Extensions |
|---|---|
| Genomic variants | .vcf, .vcf.gz, .bcf |
| Sequences | .fasta, .fa, .fna, .fastq, .fastq.gz |
| Alignments | .bam, .bam.bai, .cram |
| Single-cell | .h5ad, .h5, .loom |
| Tabular | .csv, .tsv, .txt, .xlsx |
| Structured data | .json, .yaml |
| Genomic intervals | .bed, .gff, .gtf |
| Archives | .gz, .zip, .tar.gz |
| Matrix Market | .mtx, .mtx.gz |
# Standard usage
python skills/article-data-fetcher/article_data_fetcher.py \
--id 10.1038/s41586-021-03819-2 \
--types vcf,fasta \
--output ./downloads
# Download all file types without filtering
python skills/article-data-fetcher/article_data_fetcher.py \
--id 34613072 \
--types all \
--output ./downloads
# Demo mode (uses a public GEO test accession)
python skills/article-data-fetcher/article_data_fetcher.py --demo --output /tmp/demo
# Via ClawBio runner
python clawbio.py run article-data-fetcher --id 10.xxxx/xxxxx --types h5ad,csv --output ./data
python clawbio.py run article-data-fetcher --demo
Expected output: Downloads 2 small public files from a Zenodo demo accession, writes manifest.json and report.md to /tmp/demo.
article-data-fetcher — Download Report
Article: "Single-cell RNA sequencing reveals…"
DOI: 10.1038/s41586-021-03819-2
Date: 2026-04-23
Repositories found: GEO (GSE123456), Zenodo (10.5281/zenodo.7654321)
Files downloaded (user selected: h5ad, csv):
✅ matrix.h5ad 2.3 GB GSE123456 md5:a1b2c3…
✅ metadata.csv 12 KB GSE123456 md5:d4e5f6…
Files skipped (not in selected types):
⏭ raw_counts.tsv.gz 890 MB
⏭ variants.vcf.gz 340 MB
⏭ reference.fasta 3.1 GB
Total downloaded: 2.3 GB in 2 files
Output directory: ./downloads/GSE123456/
*ClawBio is a research tool. Verify data integrity before use in analysis.*
output_dir/
├── report.md
├── manifest.json
└── <accession>/
├── matrix.h5ad
└── metadata.csv
manifest.json schema:
{
"article": "10.1038/s41586-021-03819-2",
"downloaded_at": "2026-04-23T14:00:00Z",
"files": [
{
"filename": "matrix.h5ad",
"source_url": "https://ftp.ncbi.nlm.nih.gov/geo/series/...",
"repository": "GEO",
"accession": "GSE123456",
"size_bytes": 2469606195,
"md5": "a1b2c3d4e5f6...",
"downloaded": true
}
]
}
Required:
requests>=2.31 — HTTP downloads and API callspydantic>=2.0 — Input validation and manifest schemabiopython>=1.83 — FASTA/FASTQ parsing for integrity checksOptional:
boto3 — For downloading from SRA S3 buckets (faster than FTP).vcf.gz and .vcf are different things. When the user asks for vcf, also offer .vcf.gz variants and confirm which they want.manifest.json provides a full record of every file downloadedThe agent (LLM) resolves the article, discovers accessions, presents options, and confirms with the user. The Python script executes the actual HTTP downloads. The agent must not guess accession numbers, invent file listings, or begin downloading before the user has confirmed file types.
Trigger conditions: the orchestrator routes here when:
vcf, fasta, h5ad, csv, bam, fastq)Chaining partners:
vcf-annotator: downloaded VCF files can be passed directly for annotationscrna-orchestrator: downloaded H5AD files can be passed for single-cell analysisrnaseq-de: downloaded count matrices (CSV/TSV) feed into differential expressionpubmed-summariser: run first to identify the paper, then chain here to fetch its dataWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
112 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./bgpt-mcpSearch scientific papers via the BGPT MCP server and retrieve structured experimental data — methods, results, conclusions, quality scores, and 25+ metadata fields per paper.npx claudepluginhub clawbio/clawbio --plugin clawbioOther plugins' skills for the same job