download-sra
Download raw sequencing data from NCBI SRA as FASTQ files using prefetch and fasterq-dump, with support for single accessions, batch lists, and BioProject…
Skill by Scientific-Tooling
Chalk Labs
Need help deploying download-sra?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/scientific-tooling-download-sra
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/download-sra
What's inside
- Skill name
download-sra- Description
- Download raw sequencing data from NCBI SRA as FASTQ files using prefetch and fasterq-dump, with support for single accessions, batch lists, and BioProject expansion.
- License
- MIT
- Instructions
- 74 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- SKILL.md
- claude.yaml · agents/
- openai.yaml · agents/
- config.yaml
- sra-toolkit.md · references/
- batch_run.sh · scripts/
- run.sh · scripts/
SKILL.md (first lines)
# Skill: Download SRA
## Use When
- A user wants to download FASTQ files from NCBI SRA given one or more SRR, SRX, SRS, or SRP accessions.
- A user has an accession list file and wants to batch-download all runs.
- A user wants to expand a BioProject (PRJNA) or SRA study (SRP) to its full run list and download all runs.
- A user wants paired-end reads split into R1 and R2 FASTQ files.
- A user wants to control output directory layout, thread count, or compression.
- A user wants to verify download integrity (MD5 / Vdb-validate) after prefetch.
## Inputs
- Required:
- one of:
- single SRR/SRX/SRS/SRP/PRJNA accession
- path to a plain-text file of accessions (one per line)
- Optional:
- `--outdir DIR` — output directory (default: `sra_downloads`)
- `--threads N` — parallel threads for `fasterq-dump` (default: 6)
- `--split-3` — split paired-end into R1/R2 plus unpaired (default; recommended)
- `--split-files` — split into separate files per read (use when `--split-3` drops unpaired reads)
- `--original-sra` — keep the `.sra` file after conversion (default: deleted)
- `--skip-prefetch` — pipe directly through `fasterq-dump` without intermediate `.sra` (uses more temp disk)
- `--gzip` — gzip-compress output FASTQ files (default: on)
- `--min-spots N` — skip runs with fewer than N spots (default: 0, no filter)
- `--max-size SIZE` — skip prefetch if expected size exceeds SIZE bytes
- `--temp-dir DIR` — temp directory for fasterq-dump (default: system temp)
- `--no-verify` — skip vdb-validate after prefetch
## Workflow
1. Resolve the input to a list of SRR accessions:
- If the input is a file, read it line by line (skip blank lines and `#` comments).
- If the input is a SRP/PRJNA/SRX/SRS accession, expand to SRR list:
```bash
esearch -db sra -query "<accession>" | efetch -format runinfo | \
awk -F',' 'NR>1 && $1!="" {print $1}'
```
- If the input is an SRR, use it directly.
2. For each SRR in the list, run `scripts/run.sh`:
- `prefetch --output-directory "$OUTDIR/sra_cache" "$SRR"` to download the `.sra` file.
- Optionally run `vdb-validate "$OUTDIR/sra_cache/$SRR/$SRR.sra"` to verify integrity.
- `fasterq-dump --split-3 --threads "$THREADS" --temp "$TMPDIR" --outdir "$OUTDIR/$SRR" "$OUTDIR/sra_cache/$SRR/$SRR.sra"`.
- Gzip the resulting FASTQ files: `pigz -p "$THREADS"` or `gzip`.
- Remove the `.sra` cache unless `--original-sra` was requested.
3. For batch mode (`scripts/batch_run.sh`), loop over the accession list sequentially or in parallel controlled by `--jobs N` (GNU parallel / xargs).
4. Print a per-run summary: SRR, spots downloaded, output files, size on disk, elapsed time.
5. Write `manifest.tsv` listing: SRR, sample name, R1 path, R2 path (if PE), size (bytes), md5sum.
## Output Contract
- Per-run output under `<outdir>/<SRR>/`:
- `<SRR>_1.fastq.gz` and `<SRR>_2.fastq.gz` for paired-end (split-3)
- `<SRR>.fastq.gz` for single-end
- `<SRR>_unpaired.fastq.gz` for unpaired reads from split-3 (may be absent or empty)
- `manifest.tsv` in `<outdir>/` with columns: `run`, `sample`, `r1`, `r2`, `spots`, `size_bytes`, `md5_r1`, `md5_r2`
- Per-run log files under `<outdir>/logs/<SRR>.log`
- `accessions_failed.txt` listing SRRs that could not be downloaded
## Limits
- SRA Toolkit (`prefetch`, `fasterq-dump`, `vdb-validate`) must be installed and on `$PATH`.
- `fasterq-dump` requires substantial temp disk space (typically 6–10× the compressed FASTQ size); set `--temp-dir` to a partition with sufficient space.
- dbGaP controlled-access data requires a valid ngc token file; pass it as `NCBI_SRA_AUTH_TOKEN` or via `prefetch --ngc <token.ngc>`.
- Very large SRA runs (>500 GB) may time out on slow connections; consider using the SRA on AWS (`aws s3 cp s3://sra-pub-run-odp/sra/<SRR>/<SRR>`) as an alternative.
- `--split-3` is the recommended default for paired-end data; some older SRA entries do not store paired information and will produce single-end output regardless.
- Common failure cases:
- insufficient temp disk causing `fasterq-dump` to abort mid-run, leaving partial FASTQ files
- rate-limiting or network timeout during `prefetch` on large runs; retry with exponential backoff
- accession does not exist or has been suppressed by submitter
- mixing SRX/SRS into `fasterq-dump` directly without first resolving to SRR accessionsFrom Scientific-Tooling/structured-intelligence, MIT.
More from Scientific-Tooling/structured-intelligence
- 0.456score
metagenome-functional-profiling
Scientific-Tooling
Functional annotation of metagenomic data using HUMAnN 3 for pathway abundance, Prokka for gene prediction, and eggNOG-mapper for ortholog assignment.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
metagenome-host-removal
Scientific-Tooling
Remove host-derived reads from metagenomic samples by aligning to a host reference genome and extracting unmapped pairs.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-alignment-qc
Scientific-Tooling
Assess alignment quality with coverage depth, mapping rates, insert size, and on-target metrics using samtools, mosdepth, and picard.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
ncbi-eutilities-assistant
Scientific-Tooling
Query NCBI Entrez databases through official E-utilities with deterministic search, summary, fetch, link, and history workflows.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
design-thermostable-mutations
Scientific-Tooling
Decision-grade enzyme/protein mutation design for thermostability with bioactivity-preserving constraints enforced by default, plus structure-aware and…
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
metagenome-binning
Scientific-Tooling
Recover metagenome-assembled genomes (MAGs) from contigs using MetaBAT2, refine with DAS Tool, and assess quality with CheckM2.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-variant-annotation
Scientific-Tooling
Annotate variants with functional effects using SnpEff or Ensembl VEP, adding gene impact, population frequencies, and clinical significance.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-variant-calling
Scientific-Tooling
Call SNVs and indels from aligned BAMs using GATK HaplotypeCaller or DeepVariant with optional GVCF output for joint genotyping.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
download-gdc
Scientific-Tooling
Download files from the NCI Genomic Data Commons (GDC) using the GDC Data Transfer Tool and REST API, supporting both open-access and controlled-access data.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
download-geo
Scientific-Tooling
Download supplementary data files, series matrices, and raw FASTQ links from NCBI GEO for a given GSE series or GSM sample accession.
SkillDFreshness: D★ 4Claude Code +9 - 0.453score
ngs-read-preprocessing
Scientific-Tooling
Adapter trimming, quality filtering, and per-sample QC reporting with fastp.
SkillDFreshness: D★ 4Claude Code +9 - 0.453score
genome-read-alignment
Scientific-Tooling
Align short reads to a reference genome with BWA-MEM2, sort and index with samtools, and mark duplicates with picard.
SkillDFreshness: D★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Mar 16, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Scientific-Tooling
- 0.456score
design-thermostable-mutations
Scientific-Tooling
Decision-grade enzyme/protein mutation design for thermostability with bioactivity-preserving constraints enforced by default, plus structure-aware and…
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-variant-annotation
Scientific-Tooling
Annotate variants with functional effects using SnpEff or Ensembl VEP, adding gene impact, population frequencies, and clinical significance.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
download-geo
Scientific-Tooling
Download supplementary data files, series matrices, and raw FASTQ links from NCBI GEO for a given GSE series or GSM sample accession.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-alignment-qc
Scientific-Tooling
Assess alignment quality with coverage depth, mapping rates, insert size, and on-target metrics using samtools, mosdepth, and picard.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
download-gdc
Scientific-Tooling
Download files from the NCI Genomic Data Commons (GDC) using the GDC Data Transfer Tool and REST API, supporting both open-access and controlled-access data.
SkillDFreshness: D★ 4Claude Code +9 - 0.456score
genome-variant-calling
Scientific-Tooling
Call SNVs and indels from aligned BAMs using GATK HaplotypeCaller or DeepVariant with optional GVCF output for joint genotyping.
SkillDFreshness: D★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get download-sra running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
download-sra skill. Agent Mart. https://agentmart.dev/skills/scientific-tooling-download-sra (last updated 2026-10-24)