Debian Codegraph @

debian/man/xtract.1

raw
1 .TH XTRACT 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual"
2 .SH NAME
3 xtract \- NCBI Entrez Direct XML conversion and transformation tool
4 .SH SYNOPSIS
5 \fBxtract\fP
6 [\|\fB\-help\fP\|]
7 [\|\fB\-strict\fP\|]
8 [\|\fB\-mixed\fP\|]
9 [\|\fB\-self\fP\|]
10 [\|\fB\-accent\fP\|]
11 [\|\fB\-ascii\fP\|]
12 [\|\fB\-compress\fP\|]
13 [\|\fB\-stops\fP\|]
14 [\|\fB\-input\fP\ \fIfilename\fP\|]
15 [\|\fB\-transform\fP\ \fIfilename\fP\|]
16 [\|\fB\-aliases\fP\ \fIfilename\fP\|]
17 [\|\fB\-pattern\fP\ \fIexpr\fP\|]
18 [\|\fB\-group\fP\ \fIexpr\fP\|]
19 [\|\fB\-block\fP\ \fIexpr\fP\|]
20 [\|\fB\-subset\fP\ \fIexpr\fP\|]
21 [\|\fB\-path\fP\ \fIpath\fP\|]
22 [\|\fB\-if\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]\|]
23 [\|\fB\-unless\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]\|]
24 [\|\fB\-and\fP\ \fIcondition\fP\|]
25 [\|\fB\-or\fP\ \fIcondition\fP\|]
26 [\|\fB\-else\fP\|]
27 [\|\fB\-position\fP\ \fIpos\fP\|]
28 [\|\fB\-equals\fP\ \fIstr\fP\|]
29 [\|\fB\-contains\fP\ \fIstr\fP\|]
30 [\|\fB\-mimics\fP\ \fIstr\fP\|]
31 [\|\fB\-excludes\fP\ \fIstr\fP\|]
32 [\|\fB\-includes\fP\ \fIstr\fP\|]
33 [\|\fB\-is\-within\fP\ \fIstr\fP\|]
34 [\|\fB\-starts\-with\fP\ \fIstr\fP\|]
35 [\|\fB\-ends\-with\fP\ \fIstr\fP\|]
36 [\|\fB\-is\-not\fP\ \fIstr\fP\|]
37 [\|\fB\-is\-before\fP\ \fIstr\fP\|]
38 [\|\fB\-is\-after\fP\ \fIstr\fP\|]
39 [\|\fB\-consists\-of\fP\ \fIstr\fP\|]
40 [\|\fB\-matches\fP\ \fIstr\fP\|]
41 [\|\fB\-resembles\fP\ \fIstr\fP\|]
42 [\|\fB\-is\-equal\-to\fP\ \fIexpr\fP\|]
43 [\|\fB\-differs\-from\fP\ \fIexpr\fP\|]
44 [\|\fB\-gt\fP\ \fIN\fP\|]
45 [\|\fB\-ge\fP\ \fIN\fP\|]
46 [\|\fB\-lt\fP\ \fIN\fP\|]
47 [\|\fB\-le\fP\ \fIN\fP\|]
48 [\|\fB\-eq\fP\ \fIN\fP\|]
49 [\|\fB\-ne\fP\ \fIN\fP\|]
50 [\|\fB\-ret\fP\ \fIstr\fP\|]
51 [\|\fB\-tab\fP\ \fIstr\fP\|]
52 [\|\fB\-sep\fP\ \fIstr\fP\|]
53 [\|\fB\-pfx\fP\ \fIstr\fP\|]
54 [\|\fB\-sfx\fP\ \fIstr\fP\|]
55 [\|\fB\-rst\fP\|]
56 [\|\fB\-clr\fP\|]
57 [\|\fB\-pfc\fP\ \fIstr\fP\|]
58 [\|\fB\-deq\fP\ \fIstr\fP\|]
59 [\|\fB\-def\fP\ \fIstr\fP\|]
60 [\|\fB\-lbl\fP\ \fIstr\fP\|]
61 [\|\fB\-set\fP\ \fItag\fP\|]
62 [\|\fB\-rec\fP\ \fItag\fP\|]
63 [\|\fB\-wrp\fP\ \fItag\fP\|]
64 [\|\fB\-enc\fP\ \fItag\fP\|]
65 [\|\fB\-plg\fP\ \fIstr\fP\|]
66 [\|\fB\-elg\fP\ \fIstr\fP\|]
67 [\|\fB\-pkg\fP\ \fItag\fP\|]
68 [\|\fB\-fwd\fP\ \fIstr\fP\|]
69 [\|\fB\-awd\fP\ \fIstr\fP\|]
70 [\|\fB\-tag\fP\ \fItag\fP\|]
71 [\|\fB\-att\fP\ \fIkey\fP\ \fIstr\fP\|]
72 [\|\fB\-atr\fP\ \fIkey\fP\ \fIelement\fP\|]
73 [\|\fB\-cls\fP\|]
74 [\|\fB\-slf\fP\|]
75 [\|\fB\-end\fP\ \fItag\fP\|]
76 [\|\fB\-bkt\fP\|]
77 [\|\fB\-element\fP\ \fIelement\fP\|]
78 [\|\fB\-first\fP\ \fIelement\fP\|]
79 [\|\fB\-last\fP\ \fIelement\fP\|]
80 [\|\fB\-first\fP\ \fIelement\fP\|]
81 [\|\fB\-last\fP\ \fIelement\fP\|]
82 [\|\fB\-backward\fP\ \fIelement\fP\|]
83 [\|\fB\-\fP\fINAME\fP\|]
84 [\|\fB\-\-\fP\fISTATS\fP\|]
85 [\|\fB\-num\fP\ \fIelement\fP\|]
86 [\|\fB\-len\fP\ \fIelement\fP\|]
87 [\|\fB\-sum\fP\ \fIelement\fP\|]
88 [\|\fB\-acc\fP\ \fIelement\fP\|]
89 [\|\fB\-min\fP\ \fIelement\fP\|]
90 [\|\fB\-max\fP\ \fIelement\fP\|]
91 [\|\fB\-inc\fP\ \fIelement\fP\|]
92 [\|\fB\-dec\fP\ \fIelement\fP\|]
93 [\|\fB\-sub\fP\ \fIelement\fP\|]
94 [\|\fB\-avg\fP\ \fIelement\fP\|]
95 [\|\fB\-dev\fP\ \fIelement\fP\|]
96 [\|\fB\-med\fP\ \fIelement\fP\|]
97 [\|\fB\-mul\fP\ \fIelement\fP\|]
98 [\|\fB\-div\fP\ \fIelement\fP\|]
99 [\|\fB\-mod\fP\ \fIelement\fP\|]
100 [\|\fB\-geo\fP\ \fIelement\fP\|]
101 [\|\fB\-hrm\fP\ \fIelement\fP\|]
102 [\|\fB\-rms\fP\ \fIelement\fP\|]
103 [\|\fB\-sqt\fP\ \fIelement\fP\|]
104 [\|\fB\-lge\fP\ \fIelement\fP\|]
105 [\|\fB\-lg2\fP\ \fIelement\fP\|]
106 [\|\fB\-log\fP\ \fIelement\fP\|]
107 [\|\fB\-bin\fP\ \fIelement\fP\|]
108 [\|\fB\-oct\fP\ \fIelement\fP\|]
109 [\|\fB\-hex\fP\ \fIelement\fP\|]
110 [\|\fB\-bit\fP\ \fIelement\fP\|]
111 [\|\fB\-pad\fP\ \fIelement\fP\|]
112 [\|\fB\-encode\fP\ \fIelement\fP\|]
113 [\|\fB\-decode\fP\ \fIelement\fP\|]
114 [\|\fB\-upper\fP\ \fIelement\fP\|]
115 [\|\fB\-lower\fP\ \fIelement\fP\|]
116 [\|\fB\-chain\fP\ \fIelement\fP\|]
117 [\|\fB\-title\fP\ \fIelement\fP\|]
118 [\|\fB\-mirror\fP\ \fIelement\fP\|]
119 [\|\fB\-alpha\fP\ \fIelement\fP\|]
120 [\|\fB\-alnum\fP\ \fIelement\fP\|]
121 [\|\fB\-basic\fP\ \fIelement\fP\|]
122 [\|\fB\-plain\fP\ \fIelement\fP\|]
123 [\|\fB\-simple\fP\ \fIelement\fP\|]
124 [\|\fB\-author\fP\ \fIelement\fP\|]
125 [\|\fB\-journal\fP\ \fIelement\fP\|]
126 [\|\fB\-prose\fP\ \fIelement\fP\|]
127 [\|\fB\-terms\fP\ \fIelement\fP\|]
128 [\|\fB\-words\fP\ \fIelement\fP\|]
129 [\|\fB\-pairs\fP\ \fIelement\fP\|]
130 [\|\fB\-split\fP\ \fIelement\fP\ \fB\-with\fP\ \fIstr\fP\|]
131 [\|\fB\-order\fP\ \fIelement\fP\|]
132 [\|\fB\-reverse\fP\ \fIelement\fP\|]
133 [\|\fB\-letters\fP\ \fIelement\fP\|]
134 [\|\fB\-clauses\fP\ \fIelement\fP\|]
135 [\|\fB\-pentamers\fP\ \fIelement\fP\|]
136 [\|\fB\-year\fP\ \fIelement\fP\|]
137 [\|\fB\-month\fP\ \fIelement\fP\|]
138 [\|\fB\-date\fP\ \fIelement\fP\|]
139 [\|\fB\-page\fP\ \fIelement\fP\|]
140 [\|\fB\-auth\fP\ \fIelement\fP\|]
141 [\|\fB\-initials\fP\ \fIelement\fP\|]
142 [\|\fB\-trim\fP\ \fIelement\fP\|]
143 [\|\fB\-wct\fP\ \fIelement\fP\|]
144 [\|\fB\-doi\fP\ \fIelement\fP\|]
145 [\|\fB\-accession\fP\ \fIelement\fP\|]
146 [\|\fB\-numeric\fP\ \fIelement\fP\|]
147 [\|\fB\-translate\fP\ \fIelement\fP\|]
148 [\|\fB\-classify\fP\ \fIelement\fP\|]
149 [\|\fB\-replace\fP \fB\-reg\fP\ \fItarget\fP \fB\-exp\fP\ \fIreplacement\fP\|]
150 [\|\fB\-fasta\fP\|]
151 [\|\fB\-revcomp\fP\|]
152 [\|\fB\-nucleic\fP\|]
153 [\|\fB\-ncbi2na\fP\|]
154 [\|\fB\-ncbi4na\fP\|]
155 [\|\fB\-cds2prot\fP\ [\|\fB\-gcode\fP\ \fIN\fP\|]\ \
156 [\|\fB\-frame\fP\ \fIN\fP\|]\|]
157 [\|\fB\-molwt\fP\|]
158 [\|\fB\-molwt\-m\fP\|]
159 [\|\fB\-molwt\-f\fP\|]
160 [\|\fB\-pept\fP\|]
161 [\|\fB\-0\-based\fP\ \fIelement\fP\|]
162 [\|\fB\-1\-based\fP\ \fIelement\fP\|]
163 [\|\fB\-ucsc\-based\fP\ \fIelement\fP\|]
164 [\|\fB\-insd\fP\ \fIarg\fP\ ...\|]
165 [\|\fB\-insdx\fP\|]
166 [\|\fB\-histogram\fP\|]
167 [\|\fB\-indexer\fP\ \fIelement\fP\|]
168 [\|\fB\-head\fP\ \fIstr\fP\|]
169 [\|\fB\-tail\fP\ \fIstr\fP\|]
170 [\|\fB\-hd\fP\ \fIstr\fP\|]
171 [\|\fB\-tl\fP\ \fIstr\fP\|]
172 [\|\fB\-select\fP\ \fIcondition\fP\|]
173 [\|\fB\-in\fP\ \fIfilename\fP\|]
174 [\|\fB\-sort\fP[\|\fB\-fwd\fP\|]\ \fIelement\fP\|]
175 [\|\fB\-sort\-rev\fP\ \fIelement\fP\|]
176 [\|\fB\-format\fP\ \fIfmt\fP [\|\fB\-unicode\fP\ \fIstyle\fP\|]\|]
177 [\|\fB\-verify\fP\|]
178 [\|\fB\-test\fP\|]
179 [\|\fB\-outline\fP\|]
180 [\|\fB\-synopsis\fP\|]
181 [\|\fB\-contour\fP\ [\|\fIdelimiter\fP\|]\|]
182 [\|\fB\-examples\fP\|]
183 [\|\fB\-unix\fP\|]
184 [\|\fB\-version\fP\|]
185 .SH DESCRIPTION
186 \fBxtract\fP converts an XML document
187 into a table of data values
188 according to user\-specified rules.
189 .SH OPTIONS
190 .SS Processing Flags
191 .TP 10
192 \fB\-strict\fP
193 Remove HTML and MathML tags.
194 .TP 10
195 \fB\-mixed\fP
196 Allow mixed content XML.
197 .TP 10
198 \fB\-self\fP
199 Allow detection of empty self\-closing tags.
200 .TP 10
201 \fB\-accent\fP
202 Delete Unicode accents and diacritical marks.
203 .TP 10
204 \fB\-ascii\fP
205 Convert Unicode to numeric HTML character entities.
206 .TP 10
207 \fB\-compress\fP
208 Compress runs of spaces.
209 .TP 10
210 \fB\-stops\fP
211 Retain stop words in selected phrases.
212 .SS Data Source
213 .TP 20
214 \fB\-input\fP\ \fIfilename\fP
215 Read XML from file instead of standard input.
216 .TP 20
217 \fB\-transform\fP\ \fIfilename\fP
218 File of substitutions for \fB\-translate\fP.
219 .TP 20
220 \fB\-aliases\fP\ \fIfilename\fP
221 Mappings file for \fB\-classify\fP operation.
222 .SS Exploration Argument Hierarchy
223 .PD 0
224 .TP
225 \fB\-pattern\fP\ \fIexpr\fP
226 .TP
227 \fB\-group\fP\ \fIexpr\fP
228 .TP
229 \fB\-block\fP\ \fIexpr\fP
230 .TP
231 \fB\-subset\fP\ \fIexpr\fP
232 Name of record within set.
233 Use of different argument names allows
234 command\-line control of nested looping.
235 .PD
236 .SS Path Navigation
237 .TP 15
238 \fB\-path\fP\ \fIpath\fP
239 Explore by list of adjacent object names.
240 .SS Exploration Constructs
241 .PD 0
242 .IP Object 15
243 \fBDateRevised\fP
244 .IP Parent/Child 15
245 \fBBook/AuthorList\fP
246 .IP Path 15
247 \fBMedlineCitation/Article/Journal/JournalIssue/PubDate\fP
248 .IP Heterogeneous 15
249 \fB"PubmedArticleSet/*"\fP
250 .IP Exhaustive
251 \fB"History/**"\fP
252 .IP Nested 15
253 \fB"*/Taxon"\fP
254 .PD
255 .SS Conditional Execution
256 .TP
257 \fB\-if\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]
258 Element (or \fB@\fP\fIattribute\fP) must exist
259 and satisfy any specified constraint.
260 .TP
261 \fB\-unless\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]
262 Skip if element matches.
263 .TP
264 \fB\-and\fP\ \fIcondition\fP
265 Preceding and following tests must both pass.
266 .TP
267 \fB\-or\fP\ \fIcondition\fP
268 Any passing test suffices.
269 .TP
270 \fB\-else\fP
271 Execute if conditional test failed.
272 .TP
273 \fB\-position\fP\ \fIpos\fP
274 .BR first / last / outer / inner / even / odd / all .
275 .SS String Constraints
276 .TP 17
277 \fB\-equals\fP\ \fIstr\fP
278 String must match exactly.
279 .TP 17
280 \fB\-contains\fP\ \fIstr\fP
281 Substring must be present.
282 .TP 17
283 \fB\-mimics\fP\ \fIstr\fP
284 Containment test after converting punctuation to space.
285 .TP 17
286 \fB\-excludes\fP\ \fIstr\fP
287 Substring must be absent.
288 .TP 17
289 \fB\-includes\fP\ \fIstr\fP
290 Substring must match at word boundaries.
291 .TP 17
292 \fB\-is\-within\fP\ \fIstr\fP
293 String must be present.
294 .TP 17
295 \fB\-starts\-with\fP\ \fIstr\fP
296 Substring must be at beginning.
297 .TP 17
298 \fB\-ends\-with\fP\ \fIstr\fP
299 Substring must be at end.
300 .TP 17
301 \fB\-is\-not\fP\ \fIstr\fP
302 String must not match.
303 .TP 17
304 \fB\-is\-before\fP\ \fIstr\fP
305 First string < second string.
306 .TP 17
307 \fB\-is\-after\fP\ \fIstr\fP
308 First string > second string.
309 .TP 17
310 \fB\-consists\-of\fP\ \fIstr\fP
311 String must only contain specified characters.
312 .TP 17
313 \fB\-matches\fP\ \fIstr\fP
314 Matches without commas or semicolons.
315 .TP 17
316 \fB\-resembles\fP\ \fIstr\fP
317 Requires all words, but in any order.
318 .SS Object Constraints
319 .TP 20
320 \fB\-is\-equal\-to\fP\ \fIexpr\fP
321 Object values must match.
322 .TP 20
323 \fB\-differs\-from\fP\ \fIexpr\fP
324 Object values must differ.
325 .SS Numeric Constraints
326 .TP
327 \fB\-gt\fP\ \fIN\fP
328 Greater than.
329 .TP
330 \fB\-ge\fP\ \fIN\fP
331 Greater than or equal to.
332 .TP
333 \fB\-lt\fP\ \fIN\fP
334 Less than to.
335 .TP
336 \fB\-le\fP\ \fIN\fP
337 Less than or equal to.
338 .TP
339 \fB\-eq\fP\ \fIN\fP
340 Equal to.
341 .TP
342 \fB\-ne\fP\ \fIN\fP
343 Not equal to.
344 .SS Format Customization
345 .TP 10
346 \fB\-ret\fP\ \fIstr\fP
347 Override line break between patterns.
348 .TP 10
349 \fB\-tab\fP\ \fIstr\fP
350 Replace tab character between fields.
351 .TP 10
352 \fB\-sep\fP\ \fIstr\fP
353 Separator between group members.
354 .TP 10
355 \fB\-pfx\fP\ \fIstr\fP
356 Prefix to print before group.
357 .TP 10
358 \fB\-sfx\fP\ \fIstr\fP
359 Suffix to print after group.
360 .TP 10
361 \fB\-rst\fP
362 Reset \fB\-sep\fP through \fB\-elg\fP.
363 .TP 10
364 \fB\-clr\fP
365 Clear queued tab separator.
366 .TP 10
367 \fB\-pfc\fP\ \fIstr\fP
368 Preface combines \fB\-clr\fP and \fB\-pfx\fP.
369 .TP 10
370 \fB\-deq\fP\ \fIstr\fP
371 Delete and replace queued tab separator.
372 .TP 10
373 \fB\-def\fP\ \fIstr\fP
374 Default placeholder for missing fields.
375 .TP 10
376 \fB\-lbl\fP\ \fIstr\fP
377 Insert arbitrary text.
378 .SS XML Generation
379 .TP 10
380 \fB\-set\fP\ \fItag\fP
381 XML tag for entire set.
382 .TP 10
383 \fB\-rec\fP\ \fItag\fP
384 XML tag for each record.
385 .TP 10
386 \fB\-wrp\fP\ \fItag\fP
387 Wrap elements in XML object.
388 .TP 10
389 \fB\-enc\fP\ \fItag\fP
390 Encase instance in XML object.
391 .TP 10
392 \fB\-plg\fP\ \fIstr\fP
393 Prologue to print before instance.
394 .TP 10
395 \fB\-elg\fP\ \fIstr\fP
396 Epilogue to print after instance.
397 .TP 10
398 \fB\-pkg\fP\ \fItag\fP
399 Package subset in XML object.
400 .TP 10
401 \fB\-fwd\fP\ \fIstr\fP
402 Foreword to print before subset.
403 .TP 10
404 \fB\-awd\fP\ \fIstr\fP
405 Afterword to print after subset.
406 .SS Tag and Attribute Construction
407 .TP 20
408 \fB\-tag\fP\ \fItag\fP
409 Start with \fB<\fP\fItag\fP.
410 .TP 20
411 \fB\-att\fP\ \fIkey\fP\ \fIstr\fP
412 Attribute key and literal string.
413 .TP 20
414 \fB\-att\fP\ \fIkey\fP\ \fIelement\fP
415 Attribute key and element name.
416 .TP 20
417 \fB\-cls\fP
418 Close with \fB>\fP.
419 .TP 20
420 \fB\-slf\fP
421 Self\-close with \fB/>\fP.
422 .TP 20
423 \fB\-end\fP\ \fItag\fP
424 End contents with \fB</\fP\fItag\fP\fB>\fP.
425 .SS FASTA Parsable Fields
426 .TP
427 \fB\-bkt\fP
428 Wrap elements in bracketed fields.
429 .SS Element Selection
430 .TP 20
431 \fB\-element\fP\ \fIelement\fP
432 Print all items that match tag name.
433 .TP 20
434 \fB\-first\fP\ \fIelement\fP
435 Only print value of first item.
436 .TP 20
437 \fB\-last\fP\ \fIelement\fP
438 Only print value of last item.
439 .TP 20
440 \fB\-even\fP\ \fIelement\fP
441 Only print value of even items.
442 .TP 20
443 \fB\-odd\fP\ \fIelement\fP
444 Only print value of odd items.
445 .TP 20
446 \fB\-backward\fP\ \fIelement\fP
447 Print values in reverse order.
448 .TP 20
449 \fB\-\fP\fINAME\fP
450 Record value in named variable.
451 .TP 20
452 \fB\-\-\fP\fISTATS\fP
453 Accumulate values into variable.
454 .SS \-element Constructs
455 .PD 0
456 .IP Tag 15
457 \fBCaption\fP
458 .IP Group 15
459 \fBInitials,LastName\fP
460 .IP Parent/Child
461 \fBMedlineCitation/PMID\fP
462 .IP Recursive 15
463 \fB"**/Gene\-commentary_accession"\fP
464 .IP Unrestricted 15
465 \fBPubDate/*\fP
466 .IP Attribute 15
467 \fBDescriptorName@MajorTopicYN\fP
468 .IP Range
469 \fBMedlineDate[1:4]\fP
470 .IP Substring
471 \fB"Title[phospholipase | rattlesnake]"\fP
472 .IP Alternative
473 \fB"[can contain ^ vertical bar]"\fP
474 .IP "Object Count" 15
475 \fB"#Author"\fP
476 .IP "Item Length" 15
477 \fB"%Title"\fP
478 .IP "Element Depth" 15
479 \fB"^PMID"\fP
480 .IP Variable 15
481 \fB"&NAME"\fP
482 .PD
483 .SS Special \-element Operations
484 .PD 0
485 .IP "Parent Index" 15
486 \fB"+"\fP
487 .IP "Object Name" 15
488 \fB"?"\fP
489 .IP "Object Value" 15
490 \fB"~"\fP
491 .IP "XML Subtree" 15
492 \fB"*"\fP
493 .IP Children 15
494 \fB"$"\fP
495 .IP Attributes 15
496 \fB"@"\fP
497 .IP "ASN.1 Record" 15
498 \fB"."\fP
499 .IP "JSON Record" 15
500 \fB"%"\fP
501 .PD
502 .SS Numeric (Integer) Processing
503 .TP 15
504 \fB\-num\fP\ \fIelement\fP
505 Count.
506 .TP 15
507 \fB\-len\fP\ \fIelement\fP
508 Length.
509 .TP 15
510 \fB\-sum\fP\ \fIelement\fP
511 Sum.
512 .TP 15
513 \fB\-acc\fP\ \fIelement\fP
514 Accumulator.
515 .TP 15
516 \fB\-min\fP\ \fIelement\fP
517 Minimum.
518 .TP 15
519 \fB\-max\fP\ \fIelement\fP
520 Maximum.
521 .TP 15
522 \fB\-inc\fP\ \fIelement\fP
523 Increment.
524 .TP 15
525 \fB\-dec\fP\ \fIelement\fP
526 Decrement.
527 .TP 15
528 \fB\-sub\fP\ \fIelement\fP
529 Difference.
530 .TP 15
531 \fB\-avg\fP\ \fIelement\fP
532 Arithmetic mean.
533 .TP 15
534 \fB\-dev\fP\ \fIelement\fP
535 Deviation.
536 .TP 15
537 \fB\-med\fP\ \fIelement\fP
538 Median.
539 .TP 15
540 \fB\-mul\fP\ \fIelement\fP
541 Product.
542 .TP 15
543 \fB\-div\fP\ \fIelement\fP
544 Quotient.
545 .TP 15
546 \fB\-mod\fP\ \fIelement\fP
547 Remainder.
548 .TP 15
549 \fB\-geo\fP\ \fIelement\fP
550 Geometric mean.
551 .TP 15
552 \fB\-hrm\fP\ \fIelement\fP
553 Harmonic mean.
554 .TP 15
555 \fB\-rms\fP\ \fIelement\fP
556 Root mean square.
557 .TP 15
558 \fB\-sqt\fP\ \fIelement\fP
559 Square root.
560 .TP 15
561 \fB\-lge\fP\ \fIelement\fP
562 Natural logarithm.
563 .TP 15
564 \fB\-lg2\fP\ \fIelement\fP
565 Logarithm base two.
566 .TP 15
567 \fB\-log\fP\ \fIelement\fP
568 Logarithm base ten.
569 .TP 15
570 \fB\-bin\fP\ \fIelement\fP
571 Binary.
572 .TP 15
573 \fB\-oct\fP\ \fIelement\fP
574 Octal.
575 .TP 15
576 \fB\-hex\fP\ \fIelement\fP
577 Hexadecimal.
578 .TP 15
579 \fB\-bit\fP\ \fIelement\fP
580 Number of bits set.
581 .SS Leading Zero Padding
582 .TP 15
583 \fB\-pad\fP\ \fIelement\fP
584 Zero\-pad to eight digits.
585 .SS Character Processing
586 .TP 20
587 \fB\-encode\fP\ \fIelement\fP
588 XML\-encode \fB<\fP, \fB>\fP, \fB&\fP,
589 \fB\(dq\fP, and \fB\[aq]\fP characters.
590 .TP 20
591 \fB\-decode\fP\ \fIelement\fP
592 Base64\-decode object embedded in XML.
593 .TP 20
594 \fB\-upper\fP\ \fIelement\fP
595 Convert text to uppercase.
596 .TP 20
597 \fB\-lower\fP\ \fIelement\fP
598 Convert text to lowercase.
599 .TP 20
600 \fB\-chain\fP\ \fIelement\fP
601 Change spaces to underscores.
602 .TP 20
603 \fB\-title\fP\ \fIelement\fP
604 Capitalize initial letters of words.
605 .TP 20
606 \fB\-mirror\fP\ \fIelement\fP
607 Reverse order of letters.
608 .TP 20
609 \fB\-alnum\fP\ \fIelement\fP
610 Non\-alphabetic characters to space.
611 .TP 20
612 \fB\-alnum\fP\ \fIelement\fP
613 Non\-alphanumeric characters to space.
614 .SS String Processing
615 .TP 20
616 \fB\-basic\fP\ \fIelement\fP
617 Convert superscripts and subscripts.
618 .TP 20
619 \fB\-plain\fP\ \fIelement\fP
620 Remove embedded mixed\-content markup tags.
621 .TP 20
622 \fB\-simple\fP\ \fIelement\fP
623 Normalize accented letters; spell Greek letters.
624 .TP 20
625 \fB\-author\fP\ \fIelement\fP
626 Multi\-step author cleanup.
627 .TP 20
628 \fB\-jour\fP\ \fIelement\fP
629 Journal capitalization and punctuation punctuation.
630 .TP 20
631 \fB\-prose\fP\ \fIelement\fP
632 Text conversion to ASCII.
633 .SS Text Processing
634 .TP 20
635 \fB\-terms\fP\ \fIelement\fP
636 Partition text at spaces.
637 .TP 20
638 \fB\-words\fP\ \fIelement\fP
639 Split at punctuation marks.
640 .TP 20
641 \fB\-pairs\fP\ \fIelement\fP
642 Adjacent informative words.
643 .TP 20
644 \fB\-split\fP\ \fIelement\fP
645 Split using \fB\-with\fP for delimiter.
646 .TP 20
647 \fB\-order\fP\ \fIelement\fP
648 Rearrange words in sorted order.
649 .TP 20
650 \fB\-reverse\fP\ \fIelement\fP
651 Reverse words in string.
652 .TP 20
653 \fB\-letters\fP\ \fIelement\fP
654 Separate individual letters.
655 .TP 20
656 \fB\-clauses\fP\ \fIelement\fP
657 Break at phrase separators.
658 .TP 20
659 \fB\-pentamers\fP\ \fIelement\fP
660 Sliding window of pentamers.
661 .SS Citation Functions
662 .TP 20
663 \fB\-year\fP\ \fIelement\fP
664 Extract first 4\-digit year from string.
665 .TP 20
666 \fB\-month\fP\ \fIelement\fP
667 Match first month name and return a corresponding integer.
668 .TP 20
669 \fB\-date\fP\ \fIelement\fP
670 .IB YYYY / MM / DD
671 from \fB\-unit "PubDate" \-date "*"\fP
672 .TP 20
673 \fB\-page\fP\ \fIelement\fP
674 Get digits (and letters) of first page number.
675 .TP 20
676 \fB\-auth\fP\ \fIelement\fP
677 Change GenBank authors to Medline form.
678 .TP 20
679 \fB\-initials\fP\ \fIelement\fP
680 Parse initials from forename or given name.
681 .TP 20
682 \fB\-trim\fP\ \fIelement\fP
683 Remove extra spaces and leading zeros.
684 .TP 20
685 \fB\-wct\fP\ \fIelement\fP
686 Count number of \fB\-words\fP in a string.
687 .TP 20
688 \fB\-doi\fP\ \fIelement\fP
689 Add \fBhttps://doi.org/\fP prefix, URL encode.
690 .TP 20
691 \fB\-accession\fP\ \fIelement\fP
692 Allow indexing of full
693 .IB accession . version\fP.
694 .TP 20
695 \fB\-numeric\fP\ \fIelement\fP
696 Only accept items that are entirely digits.
697 .SS Value Transformation
698 .TP 20
699 \fB\-translate\fP\ \fIelement\fP
700 Substitute values with \fB\-transform\fP table.
701 .TP 20
702 \fB\-classify\fP\ \fIelement\fP
703 Substring word or phrase matches to \fB\-aliases\fP table.
704 .SS Regular Expression
705 .TP 10
706 \fB\-replace\fP
707 Substitute text using regular expressions.
708 .PD 0
709 .RS
710 .TP 15
711 \fB\-reg\ \fItarget\fP
712 Target expression.
713 .TP 15
714 \fB\-exp\ \fIpattern\fP
715 Replacement pattern.
716 .RE
717 .PD
718 .SS Sequence Processing
719 .TP
720 \fB\-fasta\fP
721 Split sequence into blocks of 70 uppercase letters.
722 .SS Nucleotide Processing
723 .TP 10
724 \fB\-revcomp\fP
725 Reverse complement nucleotide sequence.
726 .TP 10
727 \fB\-nucleic\fP
728 Subrange determines forward or revcomp.
729 .TP 10
730 \fB\-ncbi2na\fP
731 Expand ncbi2na to IUPAC.
732 (May need to truncate result to actual sequence length.)
733 .TP 10
734 \fB\-ncbi4na\fP
735 Expand ncbi4na to IUPAC.
736 (May need to truncate result to actual sequence length.)
737 .TP 10
738 \fB\-cds2prot\fP [\|\fB\-gcode\fP \fIN\fP\|]\ [\|\fB\-frame\fP \fIN\fP\|]
739 Translate coding region
740 using \fB\-gcode\fP and (1\-based) \fB\-frame\fP
741 (both \fB1\fP by default).
742 .SS Protein Processing
743 .TP 10
744 \fB\-molwt\fP
745 Calculate molecular weight of peptide.
746 .TP 10
747 \fB\-molwt\-m\fP
748 Molecular weight retaining initial methionine.
749 .TP 10
750 \fB\-molwt\-f\fP
751 Keep initial \fBM\fP residue as formyl\-methionine.
752 .TP 10
753 \fB\-pept\fP
754 Split amino acid runs at \fB*\fP, \fB\-\fP, \fBx\fP, or \fBX\fP.
755 .SS Sequence Coordinates
756 .TP 20
757 \fB\-0\-based\fP\ \fIelement\fP
758 Zero\-based.
759 .TP 20
760 \fB\-1\-based\fP\ \fIelement\fP
761 One\-based.
762 .TP 20
763 \fB\-ucsc\-based\fP\ \fIelement\fP
764 Half\-open.
765 .SS Command Generator
766 .TP
767 \fB\-insd\fP\ \fIarg\fP\ ...
768 Generate INSDSeq extraction commands.
769 Print them if invoked standalone;
770 run them if invoked as part of a pipeline.
771 Requires one or more arguments,
772 which may appear in the following order:
773 .nh
774 .RS
775 .\".PD 0
776 .IP Descriptor(s) 15
777 .BR INSDSeq_sequence / INSDSeq_definition /\: INSDSeq_division "/... [\|...\|]"
778 .IP Completeness 15
779 .BR complete / partial
780 .IP Feature(s) 15
781 .BR CDS / mRNA /...[\| , ...\|]
782 .IP Qualifier(s)
783 .BR INSDFeature_key / \(dq#INSDInterval\(dq / gene / product /\: feat_location / sub_sequence "/... [\|...\|]"
784 .\".PD
785 .RE
786 .hy 1
787 .TP
788 \fB\-insdx\fP
789 Process \fB\-insd\fP output table into XML.
790 .SS Frequency Table
791 .TP
792 \fB\-histogram\fP
793 Collects data for \fBsort\-uniq\-count\fP(1) on entire set of records.
794 .SS Entrez Indexing
795 .TP 20
796 \fB\-indexer\fP\ \fIelement\fP
797 Positional index using \fB\-wrp\fP for field name.
798 .SS Output Organization
799 .TP 10
800 \fB\-head\fP\ \fIstr\fP
801 Print before everything else.
802 .TP 10
803 \fB\-tail\fP\ \fIstr\fP
804 Print after everything else.
805 .TP 10
806 \fB\-hd\fP\ \fIstr\fP
807 Print before each record.
808 .TP 10
809 \fB\-tl\fP\ \fIstr\fP
810 Print after each record.
811 .PD
812 .SS Record Selection
813 .TP 20
814 \fB\-select\fP\ \fIcondition\fP
815 Select record subset by conditions.
816 .TP 20
817 \fB\-in\fP\ \fIfilename\fP
818 File of identifiers to use for selection.
819 .SS Record Rearrangement
820 .TP 20
821 \fB\-sort\fP[\|\fB\-fwd\fP\|]\ \fIelement\fP
822 Element to use as sort key.
823 .TP 20
824 \fB\-sort\-rev\fP\ \fIelement\fP
825 Sort records in reverse order.
826 .SS Reformatting
827 .TP
828 \fB\-format\fP\ \fIfmt\fP
829 .PD 0
830 .RS
831 .IP \fBcopy\fP 9
832 Fast block copy (still applies processing flags).
833 .IP \fBcompact\fP 9
834 Compress runs of spaces.
835 .IP \fBflush\fP 9
836 Suppress line indentation.
837 .IP \fBindent\fP 9
838 Indent according to nesting depth.
839 .IP \fBexpand\fP 9
840 Place each attribute on a separate line.
841 .RE
842 .PD
843 .SS Validation
844 .TP 10
845 \fB\-verify\fP
846 Report XML data integrity problems.
847 .TP 10
848 \fB\-test\fP
849 Check field for visible combining accents and invisible Unicode.
850 .SS Summary
851 .TP 25
852 \fB\-outline\fP
853 Display outline of XML structure.
854 .TP 25
855 \fB\-synopsis\fP
856 Display individual XML paths.
857 .TP 25
858 \fB\-contour\fP\ [\|\fIdelimiter\fP\|]
859 Display XML paths to leaf nodes (delimited by \fB/\fP by default).
860 .SS Full Exploration Command Precedence
861 .PD 0
862 .TP
863 \fB\-pattern\fP
864 .TP
865 \fB\-path\fP
866 .TP
867 \fB\-division\fP
868 .TP
869 \fB\-group\fP
870 .TP
871 \fB\-branch\fP
872 .TP
873 \fB\-block\fP
874 .TP
875 \fB\-section\fP
876 .TP
877 \fB\-subset\fP
878 .TP
879 \fB\-unit\fP
880 .PD
881 .SS Documentation
882 .TP 10
883 \fB\-help\fP
884 Print usage information and some example argument combinations.
885 .TP 10
886 \fB\-examples\fP
887 Complete usage examples, involving additional Entrez Direct tools.
888 .TP 10
889 \fB\-unix\fP
890 Illustrate common Unix command arguments.
891 .TP 10
892 \fB\-version\fP
893 Print version number.
894 .SH NOTES
895 String constraints use case\-insensitive comparisons.
896
897 Numeric constraints and selection arguments use integer values.
898
899 \fB\-num\fP and \fB\-len\fP selections are synonyms for
900 Object Count (\fB#\fP) and Item Length (\fB%\fP).
901
902 \fB\-words\fP, \fB\-pairs\fP, and \fB\-indices\fP
903 convert to lower case.
904 .SH SEE ALSO
905 .BR align\-columns (1),
906 .BR archive\-nihocc (1),
907 .BR archive\-nlmnlp (1),
908 .BR archive\-nmcds (1),
909 .BR archive\-pids (1),
910 .BR archive\-pmc (1),
911 .BR archive\-pubmed (1),
912 .BR archive\-taxonomy (1),
913 .BR asn2ref (1),
914 .BR between\-two\-genes (1),
915 .BR bsmp2info (1),
916 .BR csv2xml (1),
917 .BR custom\-index (1),
918 .BR disambiguate\-nucleotides (1),
919 .BR download\-flatfile (1),
920 .BR download\-ncbi\-data (1),
921 .BR ds2pme (1),
922 .BR efetch (1),
923 .BR esample (1),
924 .BR filter\-columns (1),
925 .BR find\-in\-gene (1),
926 .BR fuse\-ranges (1),
927 .BR fuse\-segments (1),
928 .BR gbf2facds (1),
929 .BR gbf2fsa (1),
930 .BR gbf2info (1),
931 .BR gbf2tbl (1),
932 .BR gene2range (1),
933 .BR gff2xml (1),
934 .BR gff\-sort (1),
935 .BR gm2segs (1),
936 .BR hgvs2spdi (1),
937 .BR nquire (1),
938 .BR pm\-collect (1),
939 .BR pm\-refresh (1),
940 .BR pma2apa (1),
941 .BR pma2pme (1),
942 .BR pmc2bioc (1),
943 .BR pmc2info (1),
944 .BR print\-columns (1),
945 .BR rchive (1),
946 .BR refseq\-nm\-cds (1),
947 .BR reorder\-columns (1),
948 .BR snp2hgvs (1),
949 .BR snp2tbl (1),
950 .BR sort\-table (1),
951 .BR sort\-uniq\-count (1),
952 .BR spdi2tbl (1),
953 .BR tbl2prod (1),
954 .BR transmute (1),
955 .BR uniq\-table (1),
956 .BR xfetch (1),
957 .BR xfilter (1),
958 .BR xinfo (1),
959 .BR xlink (1),
960 .BR xml2fsa (1),
961 .BR xml2tbl (1),
962 .BR xsearch (1),
963 .BR xy\-plot (1).