EFETCH(1)
π EFETCH(1) π
okay bestie, welcome to the NCBI Entrez Direct User's Manual β no cap, this is the page for efetch and esummary, and it's gonna be a whole vibe. π§
β¨ NAME β¨
efetch, esummary β retrieve results from an NCBI Entrez search π«Ά
πΈ SYNOPSIS πΈ
efetch [-help] [-format fmt] [-mode mode] [-style style] [-db name]
[-id ID] [-input filename] [-seq_start N] [-seq_stop N] [-strand N]
[-forward] [-revcomp] [-chr_start N] [-chr_stop N] [-complexity N]
[-extend N] [-extrafeat N] [-showgaps] [-start N] [-stop N] [-raw]
[-express] [-immediate] [-json]
esummary [-help] [-mode mode] [-db name] [-id ID] [-input filename]
[-raw]
π¦ DESCRIPTION π¦
so like, efetch and esummary are your girls for pulling results out of an Entrez Direct pipeline, or from an immediate lookup β that's the -db plus -id or -input situation. lowkey iconic.
and the tea: esummary is literally just efetch -format docsum. same girl, different font. π
β οΈ okay but here's the plot twist β efetch is also the name of an AceDB tool for consulting local sequence databases. two completely different queens, one name. not me having to clarify this π
to resolve this ambiguity, Debian systems with both AceDB tools and Entrez Direct installed arrange for AceDB's executable to have the name efetch.acedb(1), and for efetch to be a wrapper script that examines its usage and proceeds to run whichever of efetch.acedb(1) or efetch.ncbi looks like a better fit. she's a diplomat, she's a matchmaker, she's everything. π
π OPTIONS π
π Format Selection
-format fmtβ the format of the record or report. (peep the-helpoutput for examples, bestie β¨)-mode modeβ pick your girl:text,xml,asn,binary, orjson.-style styleβmasterorconwithfeat.
π Direct Record Selection
-db nameβ Entrez database name for immediate lookups.-id IDβ unique identifier or accession for immediate lookups.-input filenameβ read identifer(s) from file instead of standard input. (yes, that's how it's spelled in the original, we keep it fr fr π«Ά)
π Sequence Range
-seq_start Nβ first sequence position to retrieve (1-based).-seq_stop Nβ last sequence position to retrieve (1-based).-strand Nβ strand of DNA to retrieve:1for forward (plus),2for reverse complement (minus).-forwardβ shortcut for-strand 1. β-revcompβ shortcut for-strand 2. π
π§ Gene Range
-chr_start Nβ first sequence position to retrieve (0-based).-chr_stop Nβ last sequence position to retrieve (0-based).
π heads up: this one's 0-based, the sequence range up there was 1-based. they are NOT the same girl.
π Sequence Flags
-complexity Nβ how much context to fetch, like how nosy are we feeling today:0β default1β Bioseq3β Nuc-prot set
-extend Nβ extend sequence retrieval byNresidues in both directions.-extrafeat Nβ bit flag specifying extra features.-showgapsβ propagate component gaps.
πΈ Subset Retrieval
-start Nβ first record to fetch.-stop Nβ last record to fetch.
β¨ Miscellaneous
-rawβ skip database-specific XML modifications.-expressβ direct sequence retrieval in groups of five. ποΈ-immediateβ Express mode on a single record at a time.-jsonβ convert adjusted XML output to JSON.-helpβ print usage information, complete with examples of notable-db/-format/-modecombinations (in the case ofefetch) and of supplying accessions in the-idfield (in the case ofesummary). she's helpful AND gorgeous π
π₯ SEE ALSO π₯
bsmp2info(1), combine-uid-lists(1), difference-uid-lists(1), ds2pme(1), ecollect(1), efetch.acedb(1), elink(1), esample(1), esearch(1), exclude-uid-lists(1), gbf2facds(1), gbf2fsa(1), gbf2info(1), gbf2tbl(1), hgvs2spdi(1), intersect-uid-lists(1), nquire(1), pm-refresh(1), pma2apa(1), pma2pme(1), pmc2bioc(1), pmc2info(1), run-ncbi-converter(1), snp2hgvs(1), snp2tbl(1), spdi2tbl(1), transmute(1), xfetch(1), xinfo(1), xlink(1), xml2fsa(1), xml2tbl(1), xsearch(1), xtract(1).
the whole friend group came out for this one, periodt. ππ
that's the whole page bestie β brought to you by NCBI, dated 2025-05-26, and it's giving main character energy. go fetch something iconic πβ¨
π¦ where this page comes from
- debian trixie: ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 Β· PD
- ubuntu questing: ncbi-entrez-direct 24.0.20250523+dfsg-1
- ubuntu resolute: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- ubuntu stonking: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms