download-pubmed
Quick Start
- Command:
download-pubmed [-ftp|-https] [section...] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/download-pubmed - Full reference: See
references/help.md
When To Use This Tool
- Mirror PubMed XML baselines and daily update files into local storage.
- Seed a local PubMed archive before running
archive-pubmed,fetch-pubmed, or custom text-mining pipelines. - Refresh a PubMed mirror incrementally by targeting
updatefilesafter an initial baseline sync.
Common Patterns
# 1) Download the default PubMed mirror set: baseline + updatefiles
download-pubmed
# 2) Use HTTPS explicitly
download-pubmed -https
# 3) Download only one section
download-pubmed baseline
download-pubmed updatefiles
Recommended Workflow
- Run this from a clean target directory because all downloaded
.xml.gzfiles land in the current working directory. - Use the no-argument form once to fetch both
baselineandupdatefiles, or target sections explicitly when refreshing an existing mirror. - Let the wrapper finish its retry and validation cycle before deciding a file is broken.
- Feed the validated archive into local indexing or parsing workflows instead of repeatedly querying PubMed live.
Guardrails
- With no arguments, this command downloads both
baselineandupdatefiles, which is large. - The local wrapper validates XML payloads and deletes bad downloads before retrying, so interrupted runs can leave partial work that must be retried.
- Output is written into the current directory; keep PubMed mirrors isolated from unrelated files.
- This script does not expose a normal
--helpmode in practice, so rely on the captured reference rather than probing it with arbitrary flags.