download-gdc
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.
Skill by Scientific-Tooling
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-gdc
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: backend, 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-gdc
What's inside
- Skill name
download-gdc- Description
- 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.
- License
- MIT
- Instructions
- 102 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (6)
- SKILL.md
- claude.yaml · agents/
- openai.yaml · agents/
- config.yaml
- gdc-client.md · references/
- run.sh · scripts/
SKILL.md (first lines)
# Skill: Download GDC
## Use When
- A user wants to download BAM, VCF, FASTQ, or other files from the NCI GDC (TCGA, TARGET, CPTAC, etc.).
- A user has a GDC manifest file and wants to download all listed files.
- A user wants to query the GDC API to build a manifest by project, data type, workflow, or data category.
- A user wants to download controlled-access data using a GDC user token.
- A user wants to verify downloaded file integrity using MD5 checksums from the GDC manifest.
- A user wants to organize downloaded files by case, sample, or data type.
## Inputs
- Required:
- one of:
- path to a GDC manifest file (TSV with columns: `id`, `filename`, `md5`, `size`, `state`)
- GDC file UUID(s) to generate a manifest on the fly
- GDC project ID (e.g., `TCGA-BRCA`) and filters to query and build a manifest
- Optional:
- `--token-file FILE` — GDC user token for controlled-access data (required for dbGaP-protected files)
- `--outdir DIR` — output directory (default: `gdc_downloads`)
- `--jobs N` — number of parallel download streams (default: 1; max recommended: 8)
- `--retries N` — retry count on network errors (default: 3)
- `--no-verify` — skip MD5 verification after download
- `--dry-run` — print manifest and download commands without executing
- `--data-type TYPE` — filter for manifest generation (e.g., `"Aligned Reads"`, `"Masked Somatic Mutation"`)
- `--workflow TYPE` — workflow filter (e.g., `"STAR 2-Pass"`, `"MuTect2"`)
- `--experimental-strategy` — filter (e.g., `"RNA-Seq"`, `"WXS"`, `"WGS"`)
## Workflow
1. **Obtain a manifest**:
- If a manifest file is provided, validate it (check columns: `id`, `filename`, `md5`, `size`, `state`).
- If UUIDs are provided, generate a manifest via GDC API:
```bash
curl -o manifest.txt \
"https://api.gdc.cancer.gov/manifest?ids=$(echo "$UUIDS" | tr ' ' ',')"
```
- If a project ID and filters are provided, query the GDC files endpoint and produce a manifest:
```bash
curl -XPOST "https://api.gdc.cancer.gov/files" \
-H "Content-Type: application/json" \
-d '{"filters":{"op":"and","content":[
{"op":"=","content":{"field":"cases.project.project_id","value":"TCGA-BRCA"}},
{"op":"=","content":{"field":"data_type","value":"Aligned Reads"}},
{"op":"=","content":{"field":"access","value":"open"}}]},
"fields":"file_id,file_name,md5sum,file_size,state",
"size":"10000","format":"tsv"}'
```
2. **Check access tier**: inspect the `access` field in the API response.
- `open`: no token needed.
- `controlled`: `--token-file` is required; warn the user if it is absent.
3. **Download with gdc-client**:
```bash
gdc-client download \
-m manifest.txt \
[-t token.txt] \
-d "$OUTDIR" \
--n-processes "$JOBS" \
--retry-amount "$RETRIES"
```
4. **Verify MD5 checksums**:
```bash
while IFS=$'\t' read -r uuid filename md5 size state; do
[[ "$uuid" == "id" ]] && continue
actual=$(md5sum "$OUTDIR/$uuid/$filename" | awk '{print $1}')
if [[ "$actual" != "$md5" ]]; then
echo "CHECKSUM FAIL: $filename" >&2
fi
done < manifest.txt
```
5. **Organize files** (optional): flatten the `<uuid>/<filename>` layout into a user-specified directory structure by data type, project, or sample.
6. Write `download_report.tsv` with: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status`.
## Output Contract
- Downloaded files under `<outdir>/<uuid>/<filename>` (GDC default layout)
- `manifest.txt` used for the download (generated or provided)
- `download_report.tsv` with columns: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status` (`OK` / `CHECKSUM_FAIL` / `MISSING`)
- `failed_uuids.txt` listing UUIDs that failed all retry attempts
- Exact `gdc-client` command issued
## Limits
- GDC Data Transfer Tool (`gdc-client`) must be installed; download from https://gdc.cancer.gov/access-data/gdc-data-transfer-tool.
- Controlled-access data requires a GDC user token obtained from https://portal.gdc.cancer.gov after dbGaP authorization. Tokens expire after 30 days.
- Open-access files (e.g., gene expression counts, masked somatic mutations) do not require a token.
- GDC manifest files are project-snapshot–specific; file UUIDs are stable but a manifest generated today may differ from one generated later as projects update.
- Parallel downloads (`--jobs > 1`) may trigger GDC rate limiting; start with 3–4 jobs and increase cautiously.
- Common failure cases:
- expired or invalid token causing 403 errors on controlled-access files
- manifest containing files from multiple access tiers; download will fail on controlled-access files if no token is provided
- disk space exhaustion for large TCGA BAM files (whole-genome BAMs are 50–200 GB each)
- MD5 mismatch indicating a partial or corrupted download; delete the file and retry
- mixing GDC file UUIDs with TCGA barcode IDs (barcodes must be resolved to UUIDs via the GDC API before use)From 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-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
download-sra
Scientific-Tooling
Download raw sequencing data from NCBI SRA as FASTQ files using prefetch and fasterq-dump, with support for single accessions, batch lists, and BioProject…
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-sra
Scientific-Tooling
Download raw sequencing data from NCBI SRA as FASTQ files using prefetch and fasterq-dump, with support for single accessions, batch lists, and BioProject…
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-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-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
Cite this page
download-gdc skill. Agent Mart. https://agentmart.dev/skills/scientific-tooling-download-gdc (last updated 2026-10-24)