skills/43-wentorai-research-plugins/skills/domains/biomedical/ena-sequence-api/SKILL.md
Access nucleotide sequence data from the European Nucleotide Archive
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research ena-sequence-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The European Nucleotide Archive (ENA) at EMBL-EBI is one of the three global nucleotide sequence databases (with NCBI GenBank and DDBJ). It provides access to raw sequencing reads, assembled sequences, and functional annotations from all organisms. The API supports accession lookup, text search, and bulk data retrieval. Free, no authentication required.
# Search for studies
curl "https://www.ebi.ac.uk/ena/portal/api/search?query=CRISPR+cas9&result=study&limit=20&format=json"
# Search for samples
curl "https://www.ebi.ac.uk/ena/portal/api/search?query=human+gut+microbiome&result=sample&limit=20&format=json"
# Search for runs (sequencing data)
curl "https://www.ebi.ac.uk/ena/portal/api/search?query=RNA-seq+cancer&result=read_run&limit=20&format=json"
# Get record by accession
curl "https://www.ebi.ac.uk/ena/browser/api/xml/PRJEB12345"
# Get in JSON format
curl "https://www.ebi.ac.uk/ena/browser/api/summary/PRJEB12345"
# Get sequence in FASTA
curl "https://www.ebi.ac.uk/ena/browser/api/fasta/AF123456"
# Get in EMBL flat file format
curl "https://www.ebi.ac.uk/ena/browser/api/embl/AF123456"
# Search by organism
curl "https://www.ebi.ac.uk/ena/portal/api/search?query=tax_tree(9606)&result=study&limit=20&format=json"
# Get taxonomy details
curl "https://www.ebi.ac.uk/ena/taxonomy/rest/tax-id/9606"
| Type | Description | Example accession |
|------|-------------|-------------------|
| study | Research project | PRJEB12345 |
| sample | Biological sample | SAMEA12345 |
| experiment | Library/protocol | ERX12345 |
| read_run | Sequencing run | ERR12345 |
| analysis | Computed analysis | ERZ12345 |
| sequence | Assembled sequence | AF123456 |
| wgs_set | Whole genome shotgun | AABR00000000 |
| Parameter | Description | Example |
|-----------|-------------|---------|
| query | Search text or taxonomy | query=SARS-CoV-2 |
| result | Result type | result=study |
| limit | Max results (default 100K) | limit=50 |
| offset | Pagination offset | offset=100 |
| format | Response format | json, tsv, xml |
| fields | Specific fields | fields=accession,description |
import requests
PORTAL_URL = "https://www.ebi.ac.uk/ena/portal/api"
BROWSER_URL = "https://www.ebi.ac.uk/ena/browser/api"
def search_studies(query: str, limit: int = 20) -> list:
"""Search ENA for research studies."""
params = {
"query": query,
"result": "study",
"limit": limit,
"format": "json",
"fields": "study_accession,study_title,study_description,"
"tax_id,scientific_name,center_name",
}
resp = requests.get(f"{PORTAL_URL}/search", params=params)
resp.raise_for_status()
return resp.json()
def search_runs(query: str, limit: int = 20) -> list:
"""Search for sequencing runs."""
params = {
"query": query,
"result": "read_run",
"limit": limit,
"format": "json",
"fields": "run_accession,experiment_title,instrument_platform,"
"library_strategy,read_count,base_count",
}
resp = requests.get(f"{PORTAL_URL}/search", params=params)
resp.raise_for_status()
return resp.json()
def get_fasta(accession: str) -> str:
"""Retrieve sequence in FASTA format."""
resp = requests.get(f"{BROWSER_URL}/fasta/{accession}")
resp.raise_for_status()
return resp.text
def get_study_runs(study_accession: str) -> list:
"""Get all sequencing runs for a study."""
params = {
"query": f'study_accession="{study_accession}"',
"result": "read_run",
"format": "json",
"fields": "run_accession,fastq_ftp,read_count,base_count",
"limit": 1000,
}
resp = requests.get(f"{PORTAL_URL}/search", params=params)
resp.raise_for_status()
return resp.json()
# Example: find COVID-19 sequencing studies
studies = search_studies("SARS-CoV-2 whole genome", limit=5)
for s in studies:
print(f"{s['study_accession']}: {s['study_title']}")
print(f" Organism: {s.get('scientific_name')}")
# Example: find RNA-seq runs
runs = search_runs("RNA-seq breast cancer", limit=5)
for r in runs:
reads = int(r.get("read_count", 0))
print(f"{r['run_accession']}: {r.get('experiment_title', '')}")
print(f" Platform: {r.get('instrument_platform')} | "
f"Reads: {reads:,}")
# Download FASTQ files (from run metadata)
# The fastq_ftp field provides FTP paths:
wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR123/ERR123456/ERR123456_1.fastq.gz
# Bulk download via Aspera (faster)
ascp -QT -l 300m -P33001 \
[email protected]:/vol1/fastq/ERR123/ERR123456/ ./
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.