asn2ref
Quick Start
- Command:
PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH /home/vimalinx/miniforge3/envs/bio/bin/asn2ref < seq_entry.xml - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/asn2ref - Full reference: references/help.md
When To Use This Tool
- Extract accession and citation metadata from
Seq-entryrecords. - Reformat nested article / journal metadata into compact
CITATIONXML blocks. - Prepare citation payloads for downstream EDirect tools such as
cit2pmid.
Common Patterns
# 1) Convert Seq-entry records into compact citation XML
PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH \
/home/vimalinx/miniforge3/envs/bio/bin/asn2ref \
< seq_entry.xml
# 2) Pipe the result into downstream citation-matching logic
upstream_seq_entry_command | \
PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH \
/home/vimalinx/miniforge3/envs/bio/bin/asn2ref
Recommended Workflow
- Start from
Seq-entrycontent that still contains publication metadata. - Run
asn2refas a stdin-driven filter. - Inspect the emitted
CITATIONXML forACCN,FAUT,LAUT,TITL,JOUR,VOL,ISS,PAGE, andYEAR. - Pass the compact citation XML into later citation-matching steps only after confirming the key fields survived extraction.
Guardrails
- This wrapper is just an
xtractrecipe; it depends on sibling EDirect tools being available onPATH. - Output is compact XML-like citation data, not human-readable reference text.
PAGEis normalized to the first page number only.- There is no dedicated help or version mode.