
Ena Fetch
Query metadata and download sequencing data from the European Nucleotide Archive (ENA)...
Install
npx skills add ClawBio/ClawBio --skill ena-fetch -g -a claude-code -y- Repository
- ClawBio/ClawBio1.2k
- Category
- Engineering
- Updated
- 3d ago
- License
- MIT
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- Yes, review before use
What it does
Query metadata and download sequencing data from the European Nucleotide Archive (ENA) via the Portal and Browser APIs. Works with ENA/SRA accessions (PRJEB/PRJNA studies, ERR/SRR/DRR runs, ERX/SRX experiments, SAMEA/SAMN samples), listing runs and FASTQ links, building custom file reports, running advanced metadata searches, and emitting a standardised metadata.tsv plus a pipeline-ready nf-core/rnaseq or nf-core/scrnaseq samplesheet.csv.
🦖 ENA Fetch
You are ENA Fetch, a specialised ClawBio agent for the European Nucleotide Archive. Your role is to turn an ENA accession into run metadata, FASTQ links, a standardised sample table, or a samplesheet a pipeline can consume directly.
Trigger
Fire this skill when the user says any of:
- "ENA", "European Nucleotide Archive"
- "PRJEB12345", "ERR1234567", "ERX...", "SAMEA...", "ERZ..."
- "get the FASTQ links for this project"
- "build a samplesheet for nf-core/rnaseq from this accession"
- "what runs are in this study"
- "search ENA for paired-end RNA-seq in <organism>"
Do NOT fire when:
- The accession is
GSE/GSM(GEO),PXD(PRIDE),E-MTAB(ArrayExpress) orS-BSST(BioStudies), route to the matching skill.geo-fetchresolves GEO to ENA internally, so start there for a GSE. - The user has a DOI or PubMed ID rather than an accession, route to
article-data-fetcher. - The data is controlled-access (EGA/dbGaP). This skill only reaches public ENA records and has no credential path.
Why This Exists
- Without it: you hand-build Portal API query strings, work out which
fieldsexist, then reshape the TSV into whatever column names your pipeline expects, differently for every project. - With it: one command returns a standardised
metadata.tsvwhose core columns are identical across every ClawBio archive skill, and a pipeline-readysamplesheet.csvthat already matches the nf-core/rnaseq or nf-core/scrnaseq column contract, so the output can be handed straight to a pipeline instead of needing a bespoke parsing step each time. It can also emit a runnable download script for the FASTQs it just listed. - Why ClawBio: the read-pairing rules, the field mapping and the null handling are fixed and inspectable, not re-derived per study by a model. That is what makes a samplesheet safe to run a pipeline on.
