xtract-linux
Linux platform binary for the EDirect xtract engine. It converts structured XML into tabular or generated XML output using record patterns, nested exploration scopes, conditional filters, and rich formatting controls.
Quick Start
- Command:
xtract.Linux -pattern <record> -element <field> - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/xtract.Linux - Version seen locally:
24.0
When To Use This Tool
- Extracting table rows directly from XML on Linux via the compiled
xtractbackend - Debugging raw
xtractbehavior separately from the public wrapper - Exploring XML structure before writing a larger Entrez Direct pipeline
- Using built-in compiled help as the canonical reference for
xtractarguments
Common Patterns
# Basic extraction from a tiny XML sample
printf '<Root><Rec><Val>A</Val></Rec><Rec><Val>B</Val></Rec></Root>\n' | \
xtract.Linux -pattern Rec -element Val
# Show direct binary help
xtract.Linux -help
# Read XML from a file instead of stdin
xtract.Linux -input records.xml -pattern Rec -element Val
Recommended Workflow
- Start with
xtract.Linux -helpif you need the complete compiled argument taxonomy. - Identify the record boundary with
-pattern. - Add
-group,-block,-subset, or conditional operators only after the basic extraction works. - Prefer the public
xtractwrapper if you need its front-end shortcuts intotransmuteorrchive.
Guardrails
xtract.Linux -helpandxtract.Linux -versionboth work here and report version24.0.- This is the compiled backend only; the public
xtractwrapper intercepts some flags such as-format,-outline,-j2x, and-e2indexbefore dispatch. - In local testing, a minimal XML sample piped to
xtract.Linux -pattern Rec -element Valemitted two lines:AandB. - If you run it with no stdin and no
-input, it expects XML input and will fail rather than acting like a metadata-only tool.