/clawbio:pride-fetchfrom clawbio
Queries the PRIDE Archive REST API v3 to fetch project metadata, list and download proteomics files (RAW, mzIdentML, mzML, mzTab, MGF, SDRF), search projects, and generate metadata.tsv, quantms-ready SDRF sample sheets, and bash+SLURM 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 PRIDE Fetch, a specialised ClawBio agent for the PRIDE Archive. Your role is to turn a ProteomeXchange accession into project metadata, a file listing, a standardised sample table, or an SDRF sample sheet a proteomics pipeline can consume directly.
Fire this skill when the user says any of:
Do NOT fire when:
PRJEB/ERR (ENA),
SRR (SRA), GSE (GEO), E-MTAB (ArrayExpress), S-BSST (BioStudies).
Route to the matching skill.proteomics-de for differential expression, or proteomics-clock
for organ ageing.article-data-fetcher.metadata.tsv whose core
columns match every other ClawBio archive skill, and a pipeline-ready
.sdrf.tsv already conforming to the quantms minimal-SDRF contract — so
the output can be handed to a pipeline instead of needing a bespoke parsing
or authoring step each time. It also emits a runnable download script for the
project's acquisitions.One skill, one task. This skill talks to PRIDE and nothing else.
| Format | Example | Notes |
|---|---|---|
| ProteomeXchange accession | PXD084218 | The normal case |
| PRIDE legacy accession | PRD000123 | Older submissions |
| Keyword | "Arabidopsis" | With --command search |
metadata; a phrase to search..raw, .mzML, .d, .wiff) versus
search results, FASTA and documentation.report.md, result.json, tables/metadata.tsv,
<accession>.sdrf.tsv and the reproducibility bundle into --output.download-script writes a script and stops. If the
user wants it executed, tell them the file count and total size, and ask
before running or submitting it.Steps 2–4 are prescriptive. Step 6 is a hard rule.
# Demo — offline, from the bundled fixture
python skills/pride-fetch/pride_fetch.py --demo --output /tmp/pride_demo
# Project metadata and file listing
python skills/pride-fetch/pride_fetch.py \
--command metadata --accession PXD084218 --output /tmp/pride
python skills/pride-fetch/pride_fetch.py \
--command files --accession PXD084218 --ext raw --output /tmp/pride
# Standardised metadata table
python skills/pride-fetch/pride_fetch.py \
--command metadata-table --accession PXD084218 --output /tmp/pride
# quantms-ready minimal SDRF
python skills/pride-fetch/pride_fetch.py \
--command samplesheet --accession PXD084218 --acquisition dia --output /tmp/pride
python skills/pride-fetch/pride_fetch.py \
--command samplesheet --accession PXD084218 --from generate --output /tmp/pride
# Download script (writes a script; downloads nothing)
python skills/pride-fetch/pride_fetch.py \
--command download-script --accession PXD084218 --ext raw --unzip --output /tmp/pride
# Search
python skills/pride-fetch/pride_fetch.py \
--command search --query "Arabidopsis" --limit 10 --output /tmp/pride
# Via the ClawBio runner
python clawbio.py run pride-fetch --demo
python clawbio.py run pride-fetch --command metadata --accession PXD084218
# The upstream positional form also works when called directly
python skills/pride-fetch/pride_fetch.py metadata PXD084218 --output /tmp/pride
python clawbio.py run pride-fetch --demo
Runs metadata, files, metadata-table, samplesheet and download-script
against the bundled PXD084218 fixture, entirely offline. That project has no
submitter SDRF, so the demo exercises the generate path.
GET /pride/ws/archive/v3/projects/{accession}.GET /projects/{accession}/files, paged until a short batch.GET /files/sdrf/{accession} returns a list of URLs;
empty means the project has no submitter SDRF..sdrf.tsv extension
enforced. Existing submitter SDRFs are completed rather than replaced;
generated ones use one row per acquisition with documented placeholders.characteristics[...] and factor value[...]
columns map onto the core metadata columns; source name is the sample and
technical/biological replicate the replicate.Key parameters
sample, replicate, species, sex, age, condition, genotype, treatment, tissuenot available unless --acquisition dia|dda is givenNAsource name characteristics[organism] characteristics[biological replicate] assay name comment[data file]
Sample 1 Arabidopsis thaliana 1 run 1 E20260218-08.raw
sample replicate species sex condition tissue instrument
PXD084218 1 Arabidopsis thaliana NA NA NA Orbitrap Eclipse
output_directory/
├── report.md # Commands run and what each returned
├── result.json # Machine-readable envelope
├── download_pride.sh # Runnable bash + SLURM download script
├── tables/
│ └── metadata.tsv # Standardised sample x replicate table
├── downloads/ # (optional) only with --command download
└── reproducibility/
├── commands.sh # Exact command to reproduce
├── environment.yml # Environment snapshot
└── checksums.sha256 # SHA-256 of every artifact
The SDRF is written as <accession>.sdrf.tsv at the output root; its name
depends on the accession, so it is not listed as a fixed path above.
Required: Python >= 3.10 only. The vendored client is standard library.
Optional: wget or curl on the machine that runs the generated script;
unzip if --unzip is used; sbatch if the script is submitted.
something.tsv or
.sdrf. Do not. quantms rejects anything but .sdrf.tsv, so the skill
rewrites the extension and prints a note. Do not "fix" the name afterwards.characteristics[disease] from the project's disease list. Do not.
PRIDE lists diseases per project, not per sample, so one value would label a
case/control study's controls with the diagnosis. The skill prints the list;
set the value per sample. Likewise, pass --acquisition only when the user
knows it. Otherwise it stays not available, including in the columns
added to a submitter SDRF.--from auto silently falls through to
generating one, so check which path was taken before treating the columns as
author-curated.ftp.pride.ebi.ac.uk,
not on www.ebi.ac.uk where the API is. A network that allows the API can
still block downloads. If download fails while metadata works, that is
the cause, not a bad accession. Both hosts need allowlisting on TCP/443;
the ftp. name is historical and no FTP port is used. See
docs/data-handling.md.download-script writes a script and downloads nothing.
Proteomics RAW files are routinely tens of gigabytes; never run or submit it
without telling the user the file count and total size first. It emits only
https:// locations (ftp:// is rewritten first). Aspera and other
non-URL locations are skipped with a warning. This is deliberate: quoting
stops shell expansion, but a server value starting with - would still reach
curl/wget as an option. download likewise refuses non-http(s) URLs. If
every file is skipped, the project has no https location. Report that rather
than working around it.--out defaults were relative to the working
directory. Here every path resolves under --output.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.download-script only writes a file.reproducibility/.The agent dispatches, explains, and asks before anything is executed. The skill executes. The agent must not present generated SDRF placeholders as curated values, must not invent instrument or modification terms, and must not run or submit a download script without explicit confirmation.
Trigger conditions: the orchestrator routes here on a PXD/PRD
accession or an explicit mention of PRIDE or ProteomeXchange.
Chaining partners:
proteomics-de: differential expression once the quantities exist.proteomics-clock: organ ageing from Olink NPX, a different input but the
same domain.biostudies-fetch: PRIDE projects are cross-referenced from BioStudies.article-data-fetcher: upstream producer. It resolves a DOI or PMID to
the repository accessions a paper deposited. 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 — that is this skill's job,
so the two chain rather than compete.v3; the quantms minimal-SDRF
column set changing; publicFileLocations dropping the FTP protocol entry.download-script rather than the shared
samplesheet-driven emitter, because it is driven by the project file list and
supports unzip.7cc3e6e (pride/), © 2026 UK Dementia Research Institute, MIT.examples/demo_PXD084218_files.json (opens in a new tab)examples/demo_PXD084218_project.json (opens in a new tab)examples/demo_PXD084218_sdrf_links.json (opens in a new tab)examples/demo_search.json (opens in a new tab)pride_fetch.py (opens in a new tab)pride_fetch_api.py (opens in a new tab)tests/test_pride_fetch.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pride-archive, proteomics, mass-spectrometry, proteomexchange, sdrf, quantms, embl-ebi
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.Other plugins' skills for the same job