esummary
Quick Start
- Command:
esummary - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/esummary - Full reference: See references/help.md
When To Use This Tool
- Retrieve lightweight metadata summaries without fetching the full record.
- Summarize Assembly, BioProject, BioSample, SRA, ClinVar, and many other Entrez objects.
- Use
-mode jsonwhen downstream parsing prefers JSON over XML. - Prefer
esummaryoverefetchwhen you only need metadata, not the full payload.
Common Patterns
# 1) Assembly summary
esummary -db assembly -id GCF_000001405.40
# 2) SRA summary in JSON
esummary -db sra -id SRR5437876 -mode json
# 3) Search then summarize
esearch -db biosample -query 'SAMN03737421' | esummary
Recommended Workflow
- Use
esearchor known accessions to get the relevant record IDs. - Fetch summaries first to inspect metadata before pulling full records.
- Switch to
-mode jsononly if your downstream tooling benefits from it. - Use
xtracton XML summaries when you need a quick tabular extract.
Guardrails
esummaryreturns summaries, not full records or raw sequence payloads.- Database names and accession styles are database-specific; validate them with
einfooresearchif unsure. - Use
-rawonly when you know the database-specific XML rewriting is getting in your way. - Network connectivity to NCBI is required for all operations.