ena-fetch
БесплатноЗапускает вложенные скриптыНе проверенQuery metadata and download sequencing data from the European Nucleotide Archive (ENA) via the Portal and Browser APIs. Works with ENA/SRA accessions…
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🦖 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
"
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.
Core Capabilities
- Runs and FASTQ links: every run for a study, sample or experiment.
- Custom file reports: any Portal
resulttype andfieldslist. - Advanced search: the Portal query language, e.g.
tax_eq(3702). - Record fetch: XML/JSON/EMBL/FASTA via the Browser API.
- Download: FASTQ or submitted files, per run.
- Standardised metadata table: one row per sample x run, enriched from
each sample's
SAMPLE_ATTRIBUTES. - Pipeline-ready samplesheet: nf-core/scrnaseq or nf-core/rnaseq.
- Download script: bash + optional SLURM header, one command per file.
Scope
One skill, one task. This skill talks to ENA and nothing else. GEO, SRA, PRIDE, ArrayExpress and BioStudies each have their own skill.
Input Formats
| Format | Example | Notes |
|---|---|---|
| Study | PRJEB56029, PRJNA... |
Expands to all its runs |
| Run | ERR10181253, SRR..., DRR... |
A single run |
| Experiment / Sample | ERX..., SAMEA... |
Resolved to runs |
| Portal query | tax_eq(3702) AND library_layout="PAIRED" |
With --command search |
Workflow
- Resolve the input: an accession goes to
runs; a query goes tosearch. - Fetch: one Portal
filereportcall, with the fields the command needs. - Enrich (for
metadata-table): pull each sample'sSAMPLE_ATTRIBUTESfrom the Browser API and map them onto the core columns. - Pair reads (for
samplesheet): splitfastq_ftpinto R1/R2. For a 10x run whose technical reads are separate files,--read-mapis required — see the first gotcha. - Report: write
report.md,result.json,tables/metadata.tsv,samplesheet.csvand the reproducibility bundle into--output. - Offer, do not act:
download-scriptwrites a script and stops. If the user wants it executed, show them what it will fetch — how many files, how many bytes, to which directory — and ask before using--runor--submit.
Steps 2–4 are prescriptive. Step 6 is a hard rule, not a preference.
CLI Reference
# Demo — offline, from the bundled fixture
python skills/ena-fetch/ena_fetch.py --demo --output /tmp/ena_demo
# Runs and FASTQ links
python skills/ena-fetch/ena_fetch.py \
--command runs --accession PRJEB56029 --output /tmp/ena
# Standardised metadata table
python skills/ena-fetch/ena_fetch.py \
--command metadata-table --accession PRJEB56029 --output /tmp/ena
# Pipeline-ready samplesheet
python skills/ena-fetch/ena_fetch.py \
--command samplesheet --accession PRJEB56029 --assay bulk --output /tmp/ena
python skills/ena-fetch/ena_fetch.py \
--command samplesheet --accession PRJEB56029 --assay scrna --read-map 3,4 --output /tmp/ena
# Download script from that samplesheet (writes a script; runs nothing)
python skills/ena-fetch/ena_fetch.py \
--command download-script --accession PRJEB56029 --tool curl --output /tmp/ena
# Advanced search
python skills/ena-fetch/ena_fetch.py \
--command search --query 'tax_eq(3702) AND library_strategy="RNA-Seq"' --output /tmp/
Установить ena-fetch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ena-fetch?
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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ena-fetch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic