blst2tkns
EDirect shell wrapper over xtract that reads Seq-align-set_E XML and emits a compact label/value token stream for exon-alignment records.
Quick Start
- Command:
blst2tkns - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/blst2tkns - Environment prerequisite: add
/home/vimalinx/miniforge3/envs/bio/bintoPATHso sibling tools such asxtractare resolvable
When To Use This Tool
- Convert
Seq-align-set_EXML into a lighter token stream for shell pipelines. - Pull out per-alignment values such as running index, score, start, stop, strand, and nested
parts/*content. - Bridge BLAST-derived XML that already lives in an EDirect /
xtractworkflow into simpler downstream parsing. - Use this only for the expected XML shape; it is not a generic BLAST tabular, plain-text, or FASTA converter.
Common Patterns
# 1) Tokenize an existing Seq-align-set_E XML file
export PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH
blst2tkns < seq-align-set.xml > align.tokens.txt
# 2) Inspect the first emitted tokens before scaling up
export PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH
blst2tkns < seq-align-set.xml | sed -n '1,30p'
Recommended Workflow
- Confirm the upstream XML actually contains
Seq-align-set_Erecords before blaming the wrapper for empty output. - Activate the bio environment or prepend
/home/vimalinx/miniforge3/envs/bio/bintoPATHsoxtractis available. - Run the wrapper on a small sample and inspect the emitted labels before wiring it into a larger pipeline.
- Feed the token stream to your next shell / EDirect stage once the field order matches what you expect.
Guardrails
- The script is just a one-line
xtractrecipe. Without the bio bin directory onPATH, it fails immediately withxtract: command not found. - There is no standalone help path here. With dependencies available,
blst2tkns -helpstill falls through toxtractand errors on missing input. - With
xtractavailable but no XML input, the live failure isNo data supplied to xtract from stdin or file. - Source inspection shows it hard-codes emission of
index,score,start,stop,strand, nestedparts/*tokens, and a terminatingend 0marker. If your XML schema differs, output may be partial or empty.