archive-pmc
Quick Start
- Command:
archive-pmc [download|verify|missing|index] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/archive-pmc - Full reference: See
references/help.mdfor complete usage details
When To Use This Tool
- Maintain a local PubMed Central full-text archive for offline article mining.
- Backfill missing PMC packages or verify an existing local archive after interrupted transfers.
- Rebuild local posting structures once the local PMC content is stable.
- Prefer this over ad hoc PMC file mirroring when you want the standard EDirect archive layout.
Common Patterns
# 1) Download and populate the local PMC archive
export EDIRECT_LOCAL_ARCHIVE=/data/edirect
archive-pmc
# 2) Check for missing PMC packages after a failed or partial sync
archive-pmc -missing
# 3) Rebuild local search/posting structures
archive-pmc -index
Recommended Workflow
- Set
EDIRECT_LOCAL_ARCHIVEand confirm the local archive root is writable. - Ensure the EDirect helper commands needed for drive setup are available.
- Run
archive-pmcto fetch and populate the local archive. - If a transfer was interrupted, use
-verifyor-missingbefore rebuilding postings. - Run
-indexonly after the local content looks complete, then inspect the timing summary forDAT,DWN,POP,IDX,INV,COL,MRG, andPST.
Guardrails
--helpand--versionare not metadata-only; they still run archive setup and can emit missing-helper or missing-environment errors.- The script requires
EDIRECT_LOCAL_ARCHIVE,pm-setup, andpm-prepare. download,verify,missing, andindexare distinct modes; use them deliberately instead of assuming a no-arg run will validate everything.- The cleanup ladder (
-clean,-scrub,-scour,-erase,-zap) is destructive and must be run separately from-index. -stemchanges the generated text index content, so record it if you need reproducible local search behavior.