search-sra
Search NCBI Sequence Read Archive (SRA) for sequencing runs, experiments, studies, and samples using E-utilities or the NCBI Datasets CLI.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- search-sra
- description
- Search NCBI Sequence Read Archive (SRA) for sequencing runs, experiments, studies, and samples using E-utilities or the NCBI Datasets CLI.
02 资源文件 3
- 参考文档agents/claude.yaml284 B
- 参考文档agents/openai.yaml285 B
- 参考文档config.yaml320 B
03 SKILL.md 正文
Skill: Search SRA
Use When
- A user wants to find sequencing runs, experiments, studies, or biosamples in the NCBI Sequence Read Archive.
- A user needs to look up SRA accessions (SRR, SRX, SRS, SRP, SAMN) or search by organism, tissue, assay type, or keyword.
- A user wants to retrieve run metadata (file size, read count, platform, library strategy) before downloading.
- A user wants to list all runs belonging to a BioProject or BioSample.
- A user needs to build a manifest of SRR accessions for downstream download with
prefetchorfasterq-dump. - A user wants to filter SRA by sequencing platform (Illumina, PacBio, Nanopore) or library layout (PAIRED, SINGLE).
Inputs
- Required:
- one of: free-text search query, SRA/BioProject/BioSample accession, organism name, or NCBI taxonomy ID
- Optional:
- target SRA entity type:
run,experiment,sample,study(default:run) - organism filter (e.g.,
"Homo sapiens","Mus musculus") - library strategy filter (e.g.,
RNA-Seq,WGS,ChIP-Seq,ATAC-seq) - platform filter (e.g.,
ILLUMINA,PACBIO_SMRT,OXFORD_NANOPORE) - library layout:
PAIREDorSINGLE - date range:
mindate/maxdateinYYYY/MM/DD - maximum results to return (
retmax, default 20) - output format:
json,xml, orruninfoCSV - output directory
- target SRA entity type:
Workflow
- Determine the search strategy:
- If given a bare accession (SRR/SRX/SRS/SRP/PRJNA/SAMN), map it to the correct NCBI database:
SRR,SRX,SRS,SRP→sraPRJNA→bioproject, then link tosraSAMN→biosample, then link tosra
- If given a free-text query, use
esearch -db srawith structured field tags when helpful:- organism:
[Organism] - library strategy:
[Strategy] - platform:
[Platform] - layout:
[Layout]
- organism:
- If given a bare accession (SRR/SRX/SRS/SRP/PRJNA/SAMN), map it to the correct NCBI database:
- Run
esearch -db sra -query "<term>"to retrieve UIDs. - Pipe to
esummary -db sra -format jsonorefetch -db sra -format runinfofor metadata. - For BioProject-level queries, use
esearch -db bioproject | elink -target sra | efetch -format runinfoto get the full run table. - Parse the run info CSV or JSON to extract:
Run,SampleName,BioSample,Experiment,LibraryStrategy,LibraryLayout,Platform,spots,bases,size_MB,PublishDate. - Report a summary table of matching runs and key metadata.
- If the user wants to download, provide the
prefetchorfasterq-dumpcommand with the accession list.
Output Contract
- Search query used (exact E-utilities command)
- Number of hits found
- Summary table with columns: Run (SRR), Sample, BioProject, Strategy, Platform, Layout, Spots, Bases, Size (MB), Date
- Full accession list suitable for use with
prefetchorfasterq-dump - Saved output files when an output directory is provided:
esearch.jsonruninfo.csv(whenefetch -format runinfois used)accessions.txt(one SRR per line)
Limits
- This skill depends on live access to
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/. - NCBI rate limit: 3 requests/second without API key, 10/second with API key. Always pass
--emailfor repeated queries. esummaryJSON field names for SRA differ from theruninfoCSV columns; preferefetch -format runinfofor tabular metadata.- Private or access-controlled SRA datasets (dbGaP) cannot be retrieved without an authorized token.
- Very large BioProjects (>10 000 runs) require paging with
WebEnv+query_key. - Common failure cases:
- confusing SRA database UIDs with run accessions (they are not the same)
- querying
bioprojectinstead ofsrawhen an SRR is needed - omitting
[Organism]field tag, causing organism name to match free text in other fields - requesting
retmax> 10 000 without using history server
04 同仓库更多 Skills
structured-intelligence-skill-creator
Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.
stat-survival-analysis
Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.
stat-pca
Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.
stat-pairwise-correlation
Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.
stat-nonlinear-embedding
Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.
stat-logistic-regression
Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).