xinfo
Local metadata and counts helper built on xcommon.sh plus rchive. It reports available postings fields, indexed terms, and count/totals summaries from a configured local postings directory.
Quick Start
- Command:
xinfo -db <database> -fields - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/xinfo - Critical environment:
EDIRECT_LOCAL_ARCHIVE
When To Use This Tool
- Listing local postings fields for a database
- Counting or expanding indexed terms from a local archive setup
- Getting local totals for a field such as
PROPorYEAR - Debugging local postings contents rather than querying remote
einfo
Common Patterns
# Show help
xinfo -h
# List local fields
export EDIRECT_LOCAL_ARCHIVE=/path/to/local/archive
xinfo -db pubmed -fields
# Get local term counts
export EDIRECT_LOCAL_ARCHIVE=/path/to/local/archive
xinfo -db pubmed -count 'catabolite repress*'
Recommended Workflow
- Configure
EDIRECT_LOCAL_ARCHIVEso the tool can discover the postings directory. - Start with
-fieldsto confirm the local postings layout. - Move on to
-terms,-count,-counts, or-totalsonce the field structure looks sane. - Treat failures as local-postings problems first, not as remote NCBI outages.
Guardrails
-h/--helpare safe and show usage, but--versionis not supported; locally it triggered the missing-path error andERROR: Unrecognized option --version.- This is a local postings tool, not a wrapper around remote
einfo. - Source inspection shows
-fieldsliterally changes into the postings directory and lists subdirectories, while-count/-counts/-totalsdelegate torchive. - In local testing without
EDIRECT_LOCAL_ARCHIVE,xinfo -db pubmed -fieldsprinted the missing-path error and then accidentally listed the current working directory becausecd "$postingsBase"fell through with an empty path.