archive-pubmed
Quick Start
- Command:
archive-pubmed [download|verify|missing|index] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/archive-pubmed - Full reference: See references/help.md for detailed documentation
When To Use This Tool
- Maintain a local PubMed XML archive for offline literature search, text mining, or batch analysis.
- Backfill missing baseline/update files after interrupted refreshes.
- Verify downloaded gzip packages before rebuilding the search/posting layers.
- Rebuild local PubMed postings after the archive content changes.
Common Patterns
# 1) Download new PubMed files and populate the local archive
export EDIRECT_LOCAL_ARCHIVE=/data/edirect
archive-pubmed
# 2) Check which PubMed packages are missing locally
archive-pubmed -missing
# 3) Rebuild the local PubMed search/posting structures
archive-pubmed -index
Recommended Workflow
- Set
EDIRECT_LOCAL_ARCHIVEand confirm the archive root is writable before starting. - Make sure the required helper commands for drive setup and versioned-record refresh are present.
- Run
archive-pubmedto download new files and populate the archive. - Use
-verifyor-missingif the refresh was interrupted or you suspect archive gaps. - Run
-indexonly after the data files are stable, then inspect the timing summary before using the local archive with other EDirect tools.
Guardrails
--helpand--versionare not safe inspection switches; they still run archive setup and can emit real helper/env failures.- The script requires
EDIRECT_LOCAL_ARCHIVE,pm-setup,pm-prepare, andpm-refresh. -clean,-scrub,-scour,-erase, and-zapare destructive maintenance modes and must be run separately from-index.- Mixed-year archive states can force a cleanup path before reindexing; the script explicitly tells you to
-zapor-scourin some stale-data scenarios. -stemand-strictchange how text is normalized and indexed, so record them in reproducible workflows.