| 1 |
.TH EFETCH 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" |
| 2 |
.SH NAME |
| 3 |
efetch, esummary \- retrieve results from an NCBI Entrez search |
| 4 |
.SH SYNOPSIS |
| 5 |
\fBefetch\fP |
| 6 |
[\|\fB\-help\fP\|] |
| 7 |
[\|\fB\-format\fP\ \fIfmt\fP\|] |
| 8 |
[\|\fB\-mode\fP\ \fImode\fP\|] |
| 9 |
[\|\fB\-style\fP\ \fIstyle\fP\|] |
| 10 |
[\|\fB\-db\fP\ \fIname\fP\|] |
| 11 |
[\|\fB\-id\fP\ \fIID\fP\|] |
| 12 |
[\|\fB\-input\fP\ \fIfilename\fP\|] |
| 13 |
[\|\fB\-seq_start\fP\ \fIN\fP\|] |
| 14 |
[\|\fB\-seq_stop\fP\ \fIN\fP\|] |
| 15 |
[\|\fB\-strand\fP\ \fIN\fP\|] |
| 16 |
[\|\fB\-forward\fP\|] |
| 17 |
[\|\fB\-revcomp\fP\|] |
| 18 |
[\|\fB\-chr_start\fP\ \fIN\fP\|] |
| 19 |
[\|\fB\-chr_stop\fP\ \fIN\fP\|] |
| 20 |
[\|\fB\-complexity\fP\ \fIN\fP\|] |
| 21 |
[\|\fB\-extend\fP\ \fIN\fP\|] |
| 22 |
[\|\fB\-extrafeat\fP\ \fIN\fP\|] |
| 23 |
[\|\fB\-showgaps\fP\|] |
| 24 |
[\|\fB\-start\fP\ \fIN\fP\|] |
| 25 |
[\|\fB\-stop\fP\ \fIN\fP\|] |
| 26 |
[\|\fB\-raw\fP\|] |
| 27 |
[\|\fB\-express\fP\|] |
| 28 |
[\|\fB\-immediate\fP\|] |
| 29 |
[\|\fB\-json\fP\|] |
| 30 |
|
| 31 |
\fBesummary\fP |
| 32 |
[\|\fB\-help\fP\|] |
| 33 |
[\|\fB\-mode\fP\ \fImode\fP\|] |
| 34 |
[\|\fB\-db\fP\ \fIname\fP\|] |
| 35 |
[\|\fB\-id\fP\ \fIID\fP\|] |
| 36 |
[\|\fB\-input\fP\ \fIfilename\fP\|] |
| 37 |
[\|\fB\-raw\fP\|] |
| 38 |
.SH DESCRIPTION |
| 39 |
\fBefetch\fP and \fBesummary\fP retrieve results |
| 40 |
from either an Entrez Direct pipeline |
| 41 |
or an immediate lookup (via \fB\-db\fP and \fB\-id\fP or \fB\-input\fP). |
| 42 |
\fBesummary\fP is equivalent to \fBefetch \-format docsum\fP. |
| 43 |
|
| 44 |
\fBefetch\fP is also the name of an AceDB tool |
| 45 |
for consulting local sequence databases. |
| 46 |
To resolve this ambiguity, |
| 47 |
Debian systems with both AceDB tools and Entrez Direct installed |
| 48 |
arrange for AceDB's executable to have the name \fBefetch.acedb\fP(1) |
| 49 |
and for \fBefetch\fP to be a wrapper script |
| 50 |
that examines its usage and proceeds to run whichever of |
| 51 |
\fBefetch.acedb\fP(1) or \fBefetch.ncbi\fP |
| 52 |
looks like a better fit. |
| 53 |
.SH OPTIONS |
| 54 |
.SS Format Selection |
| 55 |
.TP |
| 56 |
\fB\-format\fP\ \fIfmt\fP |
| 57 |
Format of record or report. |
| 58 |
(See \fB\-help\fP output for examples.) |
| 59 |
.TP |
| 60 |
\fB\-mode\fP\ \fImode\fP |
| 61 |
.BR text , |
| 62 |
.BR xml , |
| 63 |
.BR asn , |
| 64 |
.BR binary , |
| 65 |
or |
| 66 |
.BR json . |
| 67 |
.TP |
| 68 |
\fB\-style\fP\ \fIstyle\fP |
| 69 |
\fBmaster\fP or \fBconwithfeat\fP. |
| 70 |
.SS Direct Record Selection |
| 71 |
.TP |
| 72 |
\fB\-db\fP\ \fIname\fP |
| 73 |
Entrez database name for immediate lookups. |
| 74 |
.TP |
| 75 |
\fB\-id\fP\ \fIID\fP |
| 76 |
Unique identifier or accession for immediate lookups. |
| 77 |
.TP |
| 78 |
\fB\-input\fP\ \fIfilename\fP |
| 79 |
Read identifer(s) from file instead of standard input. |
| 80 |
.SS Sequence Range |
| 81 |
.TP |
| 82 |
\fB\-seq_start\fP\ \fIN\fP |
| 83 |
First sequence position to retrieve (1\-based). |
| 84 |
.TP |
| 85 |
\fB\-seq_stop\fP\ \fIN\fP |
| 86 |
Last sequence position to retrieve (1\-based). |
| 87 |
.TP |
| 88 |
\fB\-strand\fP\ \fIN\fP |
| 89 |
Strand of DNA to retrieve: |
| 90 |
\fB1\fP for forward (plus), \fB2\fP for reverse complement (minus). |
| 91 |
.TP |
| 92 |
\fB\-forward\fP |
| 93 |
Shortcut for \fB\-strand 1\fP. |
| 94 |
.TP |
| 95 |
\fB\-revcomp\fP |
| 96 |
Shortcut for \fB\-strand 2\fP. |
| 97 |
.SS Gene Range |
| 98 |
.TP |
| 99 |
\fB\-chr_start\fP\ \fIN\fP |
| 100 |
First sequence position to retrieve (0\-based). |
| 101 |
.TP |
| 102 |
\fB\-chr_stop\fP\ \fIN\fP |
| 103 |
Last sequence position to retrieve (0\-based). |
| 104 |
.SS Sequence Flags |
| 105 |
.TP |
| 106 |
\fB\-complexity\fP\ \fIN\fP |
| 107 |
How much context to fetch: |
| 108 |
.RS |
| 109 |
.PD 0 |
| 110 |
.IP \fB0\fP |
| 111 |
default |
| 112 |
.IP \fB1\fP |
| 113 |
Bioseq |
| 114 |
.IP \fB3\fP |
| 115 |
Nuc\-prot set |
| 116 |
.PD |
| 117 |
.RE |
| 118 |
.TP |
| 119 |
\fB\-extend\fP\ \fIN\fP |
| 120 |
Extend sequence retrieval by \fIN\fP residues in both directions. |
| 121 |
.TP |
| 122 |
\fB\-extrafeat\fP\ \fIN\fP |
| 123 |
Bit flag specifying extra features. |
| 124 |
.TP |
| 125 |
\fB\-showgaps\fP |
| 126 |
Propagate component gaps. |
| 127 |
.SS Subset Retrieval |
| 128 |
.TP |
| 129 |
\fB\-start\fP\ \fIN\fP |
| 130 |
First record to fetch. |
| 131 |
.TP |
| 132 |
\fB\-stop\fP\ \fIN\fP |
| 133 |
Last record to fetch. |
| 134 |
.SS Miscellaneous |
| 135 |
.TP |
| 136 |
\fB\-raw\fP |
| 137 |
Skip database\-specific XML modifications. |
| 138 |
.TP |
| 139 |
\fB\-express\fP |
| 140 |
Direct sequence retrieval in groups of five. |
| 141 |
.TP |
| 142 |
\fB\-immediate\fP |
| 143 |
Express mode on a single record at a time. |
| 144 |
.TP |
| 145 |
\fB\-json\fP |
| 146 |
Convert adjusted XML output to JSON. |
| 147 |
.TP |
| 148 |
\fB\-help\fP |
| 149 |
Print usage information, complete with examples of notable |
| 150 |
.BR \-db / \-format / \-mode |
| 151 |
combinations (in the case of \fBefetch\fP) |
| 152 |
and of supplying accessions in the \fB\-id\fP field |
| 153 |
(in the case of \fBesummary\fP). |
| 154 |
.SH SEE ALSO |
| 155 |
.BR bsmp2info (1), |
| 156 |
.BR combine\-uid\-lists (1), |
| 157 |
.BR difference\-uid\-lists (1), |
| 158 |
.BR ds2pme (1), |
| 159 |
.BR ecollect (1), |
| 160 |
.BR efetch.acedb (1), |
| 161 |
.BR elink (1), |
| 162 |
.BR esample (1), |
| 163 |
.BR esearch (1), |
| 164 |
.BR exclude\-uid\-lists (1), |
| 165 |
.BR gbf2facds (1), |
| 166 |
.BR gbf2fsa (1), |
| 167 |
.BR gbf2info (1), |
| 168 |
.BR gbf2tbl (1), |
| 169 |
.BR hgvs2spdi (1), |
| 170 |
.BR intersect\-uid\-lists (1), |
| 171 |
.BR nquire (1), |
| 172 |
.BR pm\-refresh (1), |
| 173 |
.BR pma2apa (1), |
| 174 |
.BR pma2pme (1), |
| 175 |
.BR pmc2bioc (1), |
| 176 |
.BR pmc2info (1), |
| 177 |
.BR run\-ncbi\-converter (1), |
| 178 |
.BR snp2hgvs (1), |
| 179 |
.BR snp2tbl (1), |
| 180 |
.BR spdi2tbl (1), |
| 181 |
.BR transmute (1), |
| 182 |
.BR xfetch (1), |
| 183 |
.BR xinfo (1), |
| 184 |
.BR xlink (1), |
| 185 |
.BR xml2fsa (1), |
| 186 |
.BR xml2tbl (1), |
| 187 |
.BR xsearch (1), |
| 188 |
.BR xtract (1). |