.TH XTRACT 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" .SH NAME xtract \- NCBI Entrez Direct XML conversion and transformation tool .SH SYNOPSIS \fBxtract\fP [\|\fB\-help\fP\|] [\|\fB\-strict\fP\|] [\|\fB\-mixed\fP\|] [\|\fB\-self\fP\|] [\|\fB\-accent\fP\|] [\|\fB\-ascii\fP\|] [\|\fB\-compress\fP\|] [\|\fB\-stops\fP\|] [\|\fB\-input\fP\ \fIfilename\fP\|] [\|\fB\-transform\fP\ \fIfilename\fP\|] [\|\fB\-aliases\fP\ \fIfilename\fP\|] [\|\fB\-pattern\fP\ \fIexpr\fP\|] [\|\fB\-group\fP\ \fIexpr\fP\|] [\|\fB\-block\fP\ \fIexpr\fP\|] [\|\fB\-subset\fP\ \fIexpr\fP\|] [\|\fB\-path\fP\ \fIpath\fP\|] [\|\fB\-if\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]\|] [\|\fB\-unless\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|]\|] [\|\fB\-and\fP\ \fIcondition\fP\|] [\|\fB\-or\fP\ \fIcondition\fP\|] [\|\fB\-else\fP\|] [\|\fB\-position\fP\ \fIpos\fP\|] [\|\fB\-equals\fP\ \fIstr\fP\|] [\|\fB\-contains\fP\ \fIstr\fP\|] [\|\fB\-mimics\fP\ \fIstr\fP\|] [\|\fB\-excludes\fP\ \fIstr\fP\|] [\|\fB\-includes\fP\ \fIstr\fP\|] [\|\fB\-is\-within\fP\ \fIstr\fP\|] [\|\fB\-starts\-with\fP\ \fIstr\fP\|] [\|\fB\-ends\-with\fP\ \fIstr\fP\|] [\|\fB\-is\-not\fP\ \fIstr\fP\|] [\|\fB\-is\-before\fP\ \fIstr\fP\|] [\|\fB\-is\-after\fP\ \fIstr\fP\|] [\|\fB\-consists\-of\fP\ \fIstr\fP\|] [\|\fB\-matches\fP\ \fIstr\fP\|] [\|\fB\-resembles\fP\ \fIstr\fP\|] [\|\fB\-is\-equal\-to\fP\ \fIexpr\fP\|] [\|\fB\-differs\-from\fP\ \fIexpr\fP\|] [\|\fB\-gt\fP\ \fIN\fP\|] [\|\fB\-ge\fP\ \fIN\fP\|] [\|\fB\-lt\fP\ \fIN\fP\|] [\|\fB\-le\fP\ \fIN\fP\|] [\|\fB\-eq\fP\ \fIN\fP\|] [\|\fB\-ne\fP\ \fIN\fP\|] [\|\fB\-ret\fP\ \fIstr\fP\|] [\|\fB\-tab\fP\ \fIstr\fP\|] [\|\fB\-sep\fP\ \fIstr\fP\|] [\|\fB\-pfx\fP\ \fIstr\fP\|] [\|\fB\-sfx\fP\ \fIstr\fP\|] [\|\fB\-rst\fP\|] [\|\fB\-clr\fP\|] [\|\fB\-pfc\fP\ \fIstr\fP\|] [\|\fB\-deq\fP\ \fIstr\fP\|] [\|\fB\-def\fP\ \fIstr\fP\|] [\|\fB\-lbl\fP\ \fIstr\fP\|] [\|\fB\-set\fP\ \fItag\fP\|] [\|\fB\-rec\fP\ \fItag\fP\|] [\|\fB\-wrp\fP\ \fItag\fP\|] [\|\fB\-enc\fP\ \fItag\fP\|] [\|\fB\-plg\fP\ \fIstr\fP\|] [\|\fB\-elg\fP\ \fIstr\fP\|] [\|\fB\-pkg\fP\ \fItag\fP\|] [\|\fB\-fwd\fP\ \fIstr\fP\|] [\|\fB\-awd\fP\ \fIstr\fP\|] [\|\fB\-tag\fP\ \fItag\fP\|] [\|\fB\-att\fP\ \fIkey\fP\ \fIstr\fP\|] [\|\fB\-atr\fP\ \fIkey\fP\ \fIelement\fP\|] [\|\fB\-cls\fP\|] [\|\fB\-slf\fP\|] [\|\fB\-end\fP\ \fItag\fP\|] [\|\fB\-bkt\fP\|] [\|\fB\-element\fP\ \fIelement\fP\|] [\|\fB\-first\fP\ \fIelement\fP\|] [\|\fB\-last\fP\ \fIelement\fP\|] [\|\fB\-first\fP\ \fIelement\fP\|] [\|\fB\-last\fP\ \fIelement\fP\|] [\|\fB\-backward\fP\ \fIelement\fP\|] [\|\fB\-\fP\fINAME\fP\|] [\|\fB\-\-\fP\fISTATS\fP\|] [\|\fB\-num\fP\ \fIelement\fP\|] [\|\fB\-len\fP\ \fIelement\fP\|] [\|\fB\-sum\fP\ \fIelement\fP\|] [\|\fB\-acc\fP\ \fIelement\fP\|] [\|\fB\-min\fP\ \fIelement\fP\|] [\|\fB\-max\fP\ \fIelement\fP\|] [\|\fB\-inc\fP\ \fIelement\fP\|] [\|\fB\-dec\fP\ \fIelement\fP\|] [\|\fB\-sub\fP\ \fIelement\fP\|] [\|\fB\-avg\fP\ \fIelement\fP\|] [\|\fB\-dev\fP\ \fIelement\fP\|] [\|\fB\-med\fP\ \fIelement\fP\|] [\|\fB\-mul\fP\ \fIelement\fP\|] [\|\fB\-div\fP\ \fIelement\fP\|] [\|\fB\-mod\fP\ \fIelement\fP\|] [\|\fB\-geo\fP\ \fIelement\fP\|] [\|\fB\-hrm\fP\ \fIelement\fP\|] [\|\fB\-rms\fP\ \fIelement\fP\|] [\|\fB\-sqt\fP\ \fIelement\fP\|] [\|\fB\-lge\fP\ \fIelement\fP\|] [\|\fB\-lg2\fP\ \fIelement\fP\|] [\|\fB\-log\fP\ \fIelement\fP\|] [\|\fB\-bin\fP\ \fIelement\fP\|] [\|\fB\-oct\fP\ \fIelement\fP\|] [\|\fB\-hex\fP\ \fIelement\fP\|] [\|\fB\-bit\fP\ \fIelement\fP\|] [\|\fB\-pad\fP\ \fIelement\fP\|] [\|\fB\-encode\fP\ \fIelement\fP\|] [\|\fB\-decode\fP\ \fIelement\fP\|] [\|\fB\-upper\fP\ \fIelement\fP\|] [\|\fB\-lower\fP\ \fIelement\fP\|] [\|\fB\-chain\fP\ \fIelement\fP\|] [\|\fB\-title\fP\ \fIelement\fP\|] [\|\fB\-mirror\fP\ \fIelement\fP\|] [\|\fB\-alpha\fP\ \fIelement\fP\|] [\|\fB\-alnum\fP\ \fIelement\fP\|] [\|\fB\-basic\fP\ \fIelement\fP\|] [\|\fB\-plain\fP\ \fIelement\fP\|] [\|\fB\-simple\fP\ \fIelement\fP\|] [\|\fB\-author\fP\ \fIelement\fP\|] [\|\fB\-journal\fP\ \fIelement\fP\|] [\|\fB\-prose\fP\ \fIelement\fP\|] [\|\fB\-terms\fP\ \fIelement\fP\|] [\|\fB\-words\fP\ \fIelement\fP\|] [\|\fB\-pairs\fP\ \fIelement\fP\|] [\|\fB\-split\fP\ \fIelement\fP\ \fB\-with\fP\ \fIstr\fP\|] [\|\fB\-order\fP\ \fIelement\fP\|] [\|\fB\-reverse\fP\ \fIelement\fP\|] [\|\fB\-letters\fP\ \fIelement\fP\|] [\|\fB\-clauses\fP\ \fIelement\fP\|] [\|\fB\-pentamers\fP\ \fIelement\fP\|] [\|\fB\-year\fP\ \fIelement\fP\|] [\|\fB\-month\fP\ \fIelement\fP\|] [\|\fB\-date\fP\ \fIelement\fP\|] [\|\fB\-page\fP\ \fIelement\fP\|] [\|\fB\-auth\fP\ \fIelement\fP\|] [\|\fB\-initials\fP\ \fIelement\fP\|] [\|\fB\-trim\fP\ \fIelement\fP\|] [\|\fB\-wct\fP\ \fIelement\fP\|] [\|\fB\-doi\fP\ \fIelement\fP\|] [\|\fB\-accession\fP\ \fIelement\fP\|] [\|\fB\-numeric\fP\ \fIelement\fP\|] [\|\fB\-translate\fP\ \fIelement\fP\|] [\|\fB\-classify\fP\ \fIelement\fP\|] [\|\fB\-replace\fP \fB\-reg\fP\ \fItarget\fP \fB\-exp\fP\ \fIreplacement\fP\|] [\|\fB\-fasta\fP\|] [\|\fB\-revcomp\fP\|] [\|\fB\-nucleic\fP\|] [\|\fB\-ncbi2na\fP\|] [\|\fB\-ncbi4na\fP\|] [\|\fB\-cds2prot\fP\ [\|\fB\-gcode\fP\ \fIN\fP\|]\ \ [\|\fB\-frame\fP\ \fIN\fP\|]\|] [\|\fB\-molwt\fP\|] [\|\fB\-molwt\-m\fP\|] [\|\fB\-molwt\-f\fP\|] [\|\fB\-pept\fP\|] [\|\fB\-0\-based\fP\ \fIelement\fP\|] [\|\fB\-1\-based\fP\ \fIelement\fP\|] [\|\fB\-ucsc\-based\fP\ \fIelement\fP\|] [\|\fB\-insd\fP\ \fIarg\fP\ ...\|] [\|\fB\-insdx\fP\|] [\|\fB\-histogram\fP\|] [\|\fB\-indexer\fP\ \fIelement\fP\|] [\|\fB\-head\fP\ \fIstr\fP\|] [\|\fB\-tail\fP\ \fIstr\fP\|] [\|\fB\-hd\fP\ \fIstr\fP\|] [\|\fB\-tl\fP\ \fIstr\fP\|] [\|\fB\-select\fP\ \fIcondition\fP\|] [\|\fB\-in\fP\ \fIfilename\fP\|] [\|\fB\-sort\fP[\|\fB\-fwd\fP\|]\ \fIelement\fP\|] [\|\fB\-sort\-rev\fP\ \fIelement\fP\|] [\|\fB\-format\fP\ \fIfmt\fP [\|\fB\-unicode\fP\ \fIstyle\fP\|]\|] [\|\fB\-verify\fP\|] [\|\fB\-test\fP\|] [\|\fB\-outline\fP\|] [\|\fB\-synopsis\fP\|] [\|\fB\-contour\fP\ [\|\fIdelimiter\fP\|]\|] [\|\fB\-examples\fP\|] [\|\fB\-unix\fP\|] [\|\fB\-version\fP\|] .SH DESCRIPTION \fBxtract\fP converts an XML document into a table of data values according to user\-specified rules. .SH OPTIONS .SS Processing Flags .TP 10 \fB\-strict\fP Remove HTML and MathML tags. .TP 10 \fB\-mixed\fP Allow mixed content XML. .TP 10 \fB\-self\fP Allow detection of empty self\-closing tags. .TP 10 \fB\-accent\fP Delete Unicode accents and diacritical marks. .TP 10 \fB\-ascii\fP Convert Unicode to numeric HTML character entities. .TP 10 \fB\-compress\fP Compress runs of spaces. .TP 10 \fB\-stops\fP Retain stop words in selected phrases. .SS Data Source .TP 20 \fB\-input\fP\ \fIfilename\fP Read XML from file instead of standard input. .TP 20 \fB\-transform\fP\ \fIfilename\fP File of substitutions for \fB\-translate\fP. .TP 20 \fB\-aliases\fP\ \fIfilename\fP Mappings file for \fB\-classify\fP operation. .SS Exploration Argument Hierarchy .PD 0 .TP \fB\-pattern\fP\ \fIexpr\fP .TP \fB\-group\fP\ \fIexpr\fP .TP \fB\-block\fP\ \fIexpr\fP .TP \fB\-subset\fP\ \fIexpr\fP Name of record within set. Use of different argument names allows command\-line control of nested looping. .PD .SS Path Navigation .TP 15 \fB\-path\fP\ \fIpath\fP Explore by list of adjacent object names. .SS Exploration Constructs .PD 0 .IP Object 15 \fBDateRevised\fP .IP Parent/Child 15 \fBBook/AuthorList\fP .IP Path 15 \fBMedlineCitation/Article/Journal/JournalIssue/PubDate\fP .IP Heterogeneous 15 \fB"PubmedArticleSet/*"\fP .IP Exhaustive \fB"History/**"\fP .IP Nested 15 \fB"*/Taxon"\fP .PD .SS Conditional Execution .TP \fB\-if\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|] Element (or \fB@\fP\fIattribute\fP) must exist and satisfy any specified constraint. .TP \fB\-unless\fP\ \fIexpr\fP\ [\|\fIconstraint\fP\|] Skip if element matches. .TP \fB\-and\fP\ \fIcondition\fP Preceding and following tests must both pass. .TP \fB\-or\fP\ \fIcondition\fP Any passing test suffices. .TP \fB\-else\fP Execute if conditional test failed. .TP \fB\-position\fP\ \fIpos\fP .BR first / last / outer / inner / even / odd / all . .SS String Constraints .TP 17 \fB\-equals\fP\ \fIstr\fP String must match exactly. .TP 17 \fB\-contains\fP\ \fIstr\fP Substring must be present. .TP 17 \fB\-mimics\fP\ \fIstr\fP Containment test after converting punctuation to space. .TP 17 \fB\-excludes\fP\ \fIstr\fP Substring must be absent. .TP 17 \fB\-includes\fP\ \fIstr\fP Substring must match at word boundaries. .TP 17 \fB\-is\-within\fP\ \fIstr\fP String must be present. .TP 17 \fB\-starts\-with\fP\ \fIstr\fP Substring must be at beginning. .TP 17 \fB\-ends\-with\fP\ \fIstr\fP Substring must be at end. .TP 17 \fB\-is\-not\fP\ \fIstr\fP String must not match. .TP 17 \fB\-is\-before\fP\ \fIstr\fP First string < second string. .TP 17 \fB\-is\-after\fP\ \fIstr\fP First string > second string. .TP 17 \fB\-consists\-of\fP\ \fIstr\fP String must only contain specified characters. .TP 17 \fB\-matches\fP\ \fIstr\fP Matches without commas or semicolons. .TP 17 \fB\-resembles\fP\ \fIstr\fP Requires all words, but in any order. .SS Object Constraints .TP 20 \fB\-is\-equal\-to\fP\ \fIexpr\fP Object values must match. .TP 20 \fB\-differs\-from\fP\ \fIexpr\fP Object values must differ. .SS Numeric Constraints .TP \fB\-gt\fP\ \fIN\fP Greater than. .TP \fB\-ge\fP\ \fIN\fP Greater than or equal to. .TP \fB\-lt\fP\ \fIN\fP Less than to. .TP \fB\-le\fP\ \fIN\fP Less than or equal to. .TP \fB\-eq\fP\ \fIN\fP Equal to. .TP \fB\-ne\fP\ \fIN\fP Not equal to. .SS Format Customization .TP 10 \fB\-ret\fP\ \fIstr\fP Override line break between patterns. .TP 10 \fB\-tab\fP\ \fIstr\fP Replace tab character between fields. .TP 10 \fB\-sep\fP\ \fIstr\fP Separator between group members. .TP 10 \fB\-pfx\fP\ \fIstr\fP Prefix to print before group. .TP 10 \fB\-sfx\fP\ \fIstr\fP Suffix to print after group. .TP 10 \fB\-rst\fP Reset \fB\-sep\fP through \fB\-elg\fP. .TP 10 \fB\-clr\fP Clear queued tab separator. .TP 10 \fB\-pfc\fP\ \fIstr\fP Preface combines \fB\-clr\fP and \fB\-pfx\fP. .TP 10 \fB\-deq\fP\ \fIstr\fP Delete and replace queued tab separator. .TP 10 \fB\-def\fP\ \fIstr\fP Default placeholder for missing fields. .TP 10 \fB\-lbl\fP\ \fIstr\fP Insert arbitrary text. .SS XML Generation .TP 10 \fB\-set\fP\ \fItag\fP XML tag for entire set. .TP 10 \fB\-rec\fP\ \fItag\fP XML tag for each record. .TP 10 \fB\-wrp\fP\ \fItag\fP Wrap elements in XML object. .TP 10 \fB\-enc\fP\ \fItag\fP Encase instance in XML object. .TP 10 \fB\-plg\fP\ \fIstr\fP Prologue to print before instance. .TP 10 \fB\-elg\fP\ \fIstr\fP Epilogue to print after instance. .TP 10 \fB\-pkg\fP\ \fItag\fP Package subset in XML object. .TP 10 \fB\-fwd\fP\ \fIstr\fP Foreword to print before subset. .TP 10 \fB\-awd\fP\ \fIstr\fP Afterword to print after subset. .SS Tag and Attribute Construction .TP 20 \fB\-tag\fP\ \fItag\fP Start with \fB<\fP\fItag\fP. .TP 20 \fB\-att\fP\ \fIkey\fP\ \fIstr\fP Attribute key and literal string. .TP 20 \fB\-att\fP\ \fIkey\fP\ \fIelement\fP Attribute key and element name. .TP 20 \fB\-cls\fP Close with \fB>\fP. .TP 20 \fB\-slf\fP Self\-close with \fB/>\fP. .TP 20 \fB\-end\fP\ \fItag\fP End contents with \fB\fP. .SS FASTA Parsable Fields .TP \fB\-bkt\fP Wrap elements in bracketed fields. .SS Element Selection .TP 20 \fB\-element\fP\ \fIelement\fP Print all items that match tag name. .TP 20 \fB\-first\fP\ \fIelement\fP Only print value of first item. .TP 20 \fB\-last\fP\ \fIelement\fP Only print value of last item. .TP 20 \fB\-even\fP\ \fIelement\fP Only print value of even items. .TP 20 \fB\-odd\fP\ \fIelement\fP Only print value of odd items. .TP 20 \fB\-backward\fP\ \fIelement\fP Print values in reverse order. .TP 20 \fB\-\fP\fINAME\fP Record value in named variable. .TP 20 \fB\-\-\fP\fISTATS\fP Accumulate values into variable. .SS \-element Constructs .PD 0 .IP Tag 15 \fBCaption\fP .IP Group 15 \fBInitials,LastName\fP .IP Parent/Child \fBMedlineCitation/PMID\fP .IP Recursive 15 \fB"**/Gene\-commentary_accession"\fP .IP Unrestricted 15 \fBPubDate/*\fP .IP Attribute 15 \fBDescriptorName@MajorTopicYN\fP .IP Range \fBMedlineDate[1:4]\fP .IP Substring \fB"Title[phospholipase | rattlesnake]"\fP .IP Alternative \fB"[can contain ^ vertical bar]"\fP .IP "Object Count" 15 \fB"#Author"\fP .IP "Item Length" 15 \fB"%Title"\fP .IP "Element Depth" 15 \fB"^PMID"\fP .IP Variable 15 \fB"&NAME"\fP .PD .SS Special \-element Operations .PD 0 .IP "Parent Index" 15 \fB"+"\fP .IP "Object Name" 15 \fB"?"\fP .IP "Object Value" 15 \fB"~"\fP .IP "XML Subtree" 15 \fB"*"\fP .IP Children 15 \fB"$"\fP .IP Attributes 15 \fB"@"\fP .IP "ASN.1 Record" 15 \fB"."\fP .IP "JSON Record" 15 \fB"%"\fP .PD .SS Numeric (Integer) Processing .TP 15 \fB\-num\fP\ \fIelement\fP Count. .TP 15 \fB\-len\fP\ \fIelement\fP Length. .TP 15 \fB\-sum\fP\ \fIelement\fP Sum. .TP 15 \fB\-acc\fP\ \fIelement\fP Accumulator. .TP 15 \fB\-min\fP\ \fIelement\fP Minimum. .TP 15 \fB\-max\fP\ \fIelement\fP Maximum. .TP 15 \fB\-inc\fP\ \fIelement\fP Increment. .TP 15 \fB\-dec\fP\ \fIelement\fP Decrement. .TP 15 \fB\-sub\fP\ \fIelement\fP Difference. .TP 15 \fB\-avg\fP\ \fIelement\fP Arithmetic mean. .TP 15 \fB\-dev\fP\ \fIelement\fP Deviation. .TP 15 \fB\-med\fP\ \fIelement\fP Median. .TP 15 \fB\-mul\fP\ \fIelement\fP Product. .TP 15 \fB\-div\fP\ \fIelement\fP Quotient. .TP 15 \fB\-mod\fP\ \fIelement\fP Remainder. .TP 15 \fB\-geo\fP\ \fIelement\fP Geometric mean. .TP 15 \fB\-hrm\fP\ \fIelement\fP Harmonic mean. .TP 15 \fB\-rms\fP\ \fIelement\fP Root mean square. .TP 15 \fB\-sqt\fP\ \fIelement\fP Square root. .TP 15 \fB\-lge\fP\ \fIelement\fP Natural logarithm. .TP 15 \fB\-lg2\fP\ \fIelement\fP Logarithm base two. .TP 15 \fB\-log\fP\ \fIelement\fP Logarithm base ten. .TP 15 \fB\-bin\fP\ \fIelement\fP Binary. .TP 15 \fB\-oct\fP\ \fIelement\fP Octal. .TP 15 \fB\-hex\fP\ \fIelement\fP Hexadecimal. .TP 15 \fB\-bit\fP\ \fIelement\fP Number of bits set. .SS Leading Zero Padding .TP 15 \fB\-pad\fP\ \fIelement\fP Zero\-pad to eight digits. .SS Character Processing .TP 20 \fB\-encode\fP\ \fIelement\fP XML\-encode \fB<\fP, \fB>\fP, \fB&\fP, \fB\(dq\fP, and \fB\[aq]\fP characters. .TP 20 \fB\-decode\fP\ \fIelement\fP Base64\-decode object embedded in XML. .TP 20 \fB\-upper\fP\ \fIelement\fP Convert text to uppercase. .TP 20 \fB\-lower\fP\ \fIelement\fP Convert text to lowercase. .TP 20 \fB\-chain\fP\ \fIelement\fP Change spaces to underscores. .TP 20 \fB\-title\fP\ \fIelement\fP Capitalize initial letters of words. .TP 20 \fB\-mirror\fP\ \fIelement\fP Reverse order of letters. .TP 20 \fB\-alnum\fP\ \fIelement\fP Non\-alphabetic characters to space. .TP 20 \fB\-alnum\fP\ \fIelement\fP Non\-alphanumeric characters to space. .SS String Processing .TP 20 \fB\-basic\fP\ \fIelement\fP Convert superscripts and subscripts. .TP 20 \fB\-plain\fP\ \fIelement\fP Remove embedded mixed\-content markup tags. .TP 20 \fB\-simple\fP\ \fIelement\fP Normalize accented letters; spell Greek letters. .TP 20 \fB\-author\fP\ \fIelement\fP Multi\-step author cleanup. .TP 20 \fB\-jour\fP\ \fIelement\fP Journal capitalization and punctuation punctuation. .TP 20 \fB\-prose\fP\ \fIelement\fP Text conversion to ASCII. .SS Text Processing .TP 20 \fB\-terms\fP\ \fIelement\fP Partition text at spaces. .TP 20 \fB\-words\fP\ \fIelement\fP Split at punctuation marks. .TP 20 \fB\-pairs\fP\ \fIelement\fP Adjacent informative words. .TP 20 \fB\-split\fP\ \fIelement\fP Split using \fB\-with\fP for delimiter. .TP 20 \fB\-order\fP\ \fIelement\fP Rearrange words in sorted order. .TP 20 \fB\-reverse\fP\ \fIelement\fP Reverse words in string. .TP 20 \fB\-letters\fP\ \fIelement\fP Separate individual letters. .TP 20 \fB\-clauses\fP\ \fIelement\fP Break at phrase separators. .TP 20 \fB\-pentamers\fP\ \fIelement\fP Sliding window of pentamers. .SS Citation Functions .TP 20 \fB\-year\fP\ \fIelement\fP Extract first 4\-digit year from string. .TP 20 \fB\-month\fP\ \fIelement\fP Match first month name and return a corresponding integer. .TP 20 \fB\-date\fP\ \fIelement\fP .IB YYYY / MM / DD from \fB\-unit "PubDate" \-date "*"\fP .TP 20 \fB\-page\fP\ \fIelement\fP Get digits (and letters) of first page number. .TP 20 \fB\-auth\fP\ \fIelement\fP Change GenBank authors to Medline form. .TP 20 \fB\-initials\fP\ \fIelement\fP Parse initials from forename or given name. .TP 20 \fB\-trim\fP\ \fIelement\fP Remove extra spaces and leading zeros. .TP 20 \fB\-wct\fP\ \fIelement\fP Count number of \fB\-words\fP in a string. .TP 20 \fB\-doi\fP\ \fIelement\fP Add \fBhttps://doi.org/\fP prefix, URL encode. .TP 20 \fB\-accession\fP\ \fIelement\fP Allow indexing of full .IB accession . version\fP. .TP 20 \fB\-numeric\fP\ \fIelement\fP Only accept items that are entirely digits. .SS Value Transformation .TP 20 \fB\-translate\fP\ \fIelement\fP Substitute values with \fB\-transform\fP table. .TP 20 \fB\-classify\fP\ \fIelement\fP Substring word or phrase matches to \fB\-aliases\fP table. .SS Regular Expression .TP 10 \fB\-replace\fP Substitute text using regular expressions. .PD 0 .RS .TP 15 \fB\-reg\ \fItarget\fP Target expression. .TP 15 \fB\-exp\ \fIpattern\fP Replacement pattern. .RE .PD .SS Sequence Processing .TP \fB\-fasta\fP Split sequence into blocks of 70 uppercase letters. .SS Nucleotide Processing .TP 10 \fB\-revcomp\fP Reverse complement nucleotide sequence. .TP 10 \fB\-nucleic\fP Subrange determines forward or revcomp. .TP 10 \fB\-ncbi2na\fP Expand ncbi2na to IUPAC. (May need to truncate result to actual sequence length.) .TP 10 \fB\-ncbi4na\fP Expand ncbi4na to IUPAC. (May need to truncate result to actual sequence length.) .TP 10 \fB\-cds2prot\fP [\|\fB\-gcode\fP \fIN\fP\|]\ [\|\fB\-frame\fP \fIN\fP\|] Translate coding region using \fB\-gcode\fP and (1\-based) \fB\-frame\fP (both \fB1\fP by default). .SS Protein Processing .TP 10 \fB\-molwt\fP Calculate molecular weight of peptide. .TP 10 \fB\-molwt\-m\fP Molecular weight retaining initial methionine. .TP 10 \fB\-molwt\-f\fP Keep initial \fBM\fP residue as formyl\-methionine. .TP 10 \fB\-pept\fP Split amino acid runs at \fB*\fP, \fB\-\fP, \fBx\fP, or \fBX\fP. .SS Sequence Coordinates .TP 20 \fB\-0\-based\fP\ \fIelement\fP Zero\-based. .TP 20 \fB\-1\-based\fP\ \fIelement\fP One\-based. .TP 20 \fB\-ucsc\-based\fP\ \fIelement\fP Half\-open. .SS Command Generator .TP \fB\-insd\fP\ \fIarg\fP\ ... Generate INSDSeq extraction commands. Print them if invoked standalone; run them if invoked as part of a pipeline. Requires one or more arguments, which may appear in the following order: .nh .RS .\".PD 0 .IP Descriptor(s) 15 .BR INSDSeq_sequence / INSDSeq_definition /\: INSDSeq_division "/... [\|...\|]" .IP Completeness 15 .BR complete / partial .IP Feature(s) 15 .BR CDS / mRNA /...[\| , ...\|] .IP Qualifier(s) .BR INSDFeature_key / \(dq#INSDInterval\(dq / gene / product /\: feat_location / sub_sequence "/... [\|...\|]" .\".PD .RE .hy 1 .TP \fB\-insdx\fP Process \fB\-insd\fP output table into XML. .SS Frequency Table .TP \fB\-histogram\fP Collects data for \fBsort\-uniq\-count\fP(1) on entire set of records. .SS Entrez Indexing .TP 20 \fB\-indexer\fP\ \fIelement\fP Positional index using \fB\-wrp\fP for field name. .SS Output Organization .TP 10 \fB\-head\fP\ \fIstr\fP Print before everything else. .TP 10 \fB\-tail\fP\ \fIstr\fP Print after everything else. .TP 10 \fB\-hd\fP\ \fIstr\fP Print before each record. .TP 10 \fB\-tl\fP\ \fIstr\fP Print after each record. .PD .SS Record Selection .TP 20 \fB\-select\fP\ \fIcondition\fP Select record subset by conditions. .TP 20 \fB\-in\fP\ \fIfilename\fP File of identifiers to use for selection. .SS Record Rearrangement .TP 20 \fB\-sort\fP[\|\fB\-fwd\fP\|]\ \fIelement\fP Element to use as sort key. .TP 20 \fB\-sort\-rev\fP\ \fIelement\fP Sort records in reverse order. .SS Reformatting .TP \fB\-format\fP\ \fIfmt\fP .PD 0 .RS .IP \fBcopy\fP 9 Fast block copy (still applies processing flags). .IP \fBcompact\fP 9 Compress runs of spaces. .IP \fBflush\fP 9 Suppress line indentation. .IP \fBindent\fP 9 Indent according to nesting depth. .IP \fBexpand\fP 9 Place each attribute on a separate line. .RE .PD .SS Validation .TP 10 \fB\-verify\fP Report XML data integrity problems. .TP 10 \fB\-test\fP Check field for visible combining accents and invisible Unicode. .SS Summary .TP 25 \fB\-outline\fP Display outline of XML structure. .TP 25 \fB\-synopsis\fP Display individual XML paths. .TP 25 \fB\-contour\fP\ [\|\fIdelimiter\fP\|] Display XML paths to leaf nodes (delimited by \fB/\fP by default). .SS Full Exploration Command Precedence .PD 0 .TP \fB\-pattern\fP .TP \fB\-path\fP .TP \fB\-division\fP .TP \fB\-group\fP .TP \fB\-branch\fP .TP \fB\-block\fP .TP \fB\-section\fP .TP \fB\-subset\fP .TP \fB\-unit\fP .PD .SS Documentation .TP 10 \fB\-help\fP Print usage information and some example argument combinations. .TP 10 \fB\-examples\fP Complete usage examples, involving additional Entrez Direct tools. .TP 10 \fB\-unix\fP Illustrate common Unix command arguments. .TP 10 \fB\-version\fP Print version number. .SH NOTES String constraints use case\-insensitive comparisons. Numeric constraints and selection arguments use integer values. \fB\-num\fP and \fB\-len\fP selections are synonyms for Object Count (\fB#\fP) and Item Length (\fB%\fP). \fB\-words\fP, \fB\-pairs\fP, and \fB\-indices\fP convert to lower case. .SH SEE ALSO .BR align\-columns (1), .BR archive\-nihocc (1), .BR archive\-nlmnlp (1), .BR archive\-nmcds (1), .BR archive\-pids (1), .BR archive\-pmc (1), .BR archive\-pubmed (1), .BR archive\-taxonomy (1), .BR asn2ref (1), .BR between\-two\-genes (1), .BR bsmp2info (1), .BR csv2xml (1), .BR custom\-index (1), .BR disambiguate\-nucleotides (1), .BR download\-flatfile (1), .BR download\-ncbi\-data (1), .BR ds2pme (1), .BR efetch (1), .BR esample (1), .BR filter\-columns (1), .BR find\-in\-gene (1), .BR fuse\-ranges (1), .BR fuse\-segments (1), .BR gbf2facds (1), .BR gbf2fsa (1), .BR gbf2info (1), .BR gbf2tbl (1), .BR gene2range (1), .BR gff2xml (1), .BR gff\-sort (1), .BR gm2segs (1), .BR hgvs2spdi (1), .BR nquire (1), .BR pm\-collect (1), .BR pm\-refresh (1), .BR pma2apa (1), .BR pma2pme (1), .BR pmc2bioc (1), .BR pmc2info (1), .BR print\-columns (1), .BR rchive (1), .BR refseq\-nm\-cds (1), .BR reorder\-columns (1), .BR snp2hgvs (1), .BR snp2tbl (1), .BR sort\-table (1), .BR sort\-uniq\-count (1), .BR spdi2tbl (1), .BR tbl2prod (1), .BR transmute (1), .BR uniq\-table (1), .BR xfetch (1), .BR xfilter (1), .BR xinfo (1), .BR xlink (1), .BR xml2fsa (1), .BR xml2tbl (1), .BR xsearch (1), .BR xy\-plot (1).