search-sra
Skill4 starsChanged 12 days agoMITView on GitHub
Search NCBI Sequence Read Archive (SRA) for sequencing runs, experiments, studies, and samples using E-utilities or the NCBI Datasets CLI.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
If given a bare accession (SRR/SRX/SRS/SRP/PRJNA/SAMN), map it to the correct NCBI database:
- Very specific: line 39
If given a free-text query, use esearch -db sra with structured field tags when helpful:
- Very specific: line 44
Run esearch -db sra -query "<term>" to retrieve UIDs.
- Very specific: line 49
If the user wants to download, provide the prefetch or fasterq-dump command with the accession list.
- Distinctive: line 53
Search query used (exact E-utilities command)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

