RCHIVE(1)
π rchive β bestie's guide to your very own local Entrez archive π
okay so this is from the NCBI Entrez Direct User's Manual, and it's giving main character energy for anyone who's ever wanted a little archive of Entrez document summaries living rent-free on their own machine. no cap. πΈ
β¨ NAME β¨
rchive β work with a local archive of Entrez document summaries ποΈπ
π SYNOPSIS π
rchive [-help] [-strict] [-mixed] [-input filename]
[-archive archive indices increment] [-delete archive indices increment]
[-index element] [-fetch directory] [-stream directory] [-flag strict|
mixed|none] [-gzip] [-hash] [-trie [type]] [-padz] [-e2index [extras]]
[-e2invert archive] [-join] [-fuse] [-merge directory field]
[-promote directory field] [-path directory] [-query query] [-exact
query] [-title query] [-count query] [-counts query] [-version]
π DESCRIPTION π
So basically, rchive creates, updates, or extracts records from a local archive of Entrez document summaries. Like, it's the whole archive situation β building it, refreshing it, pulling stuff back out of it. Obsessed. β¨
π OPTIONS π
π§ Processing Flags π§
-strictβ strips out the HTML and MathML tags. bye babes π-mixedβ allows mixed content XML. she's flexible like that.
π Data Source π
-inputfilename β read the XML from a file instead of from standard input. iconic behavior honestly.
π Local Record Cache π
-archivearchive indices increment β the base path where the individual XML files get saved, plus the paths for the first-level and second-level inverted index caches. three paths, one flag, slay. π₯-deletearchive indices increment β literally the same paths as-archive, except this one is for deleting the inverted caches. use with intention bestie π«Ά-indexelement β use[parent/element@attribute^version]as the identifier. yes, with the brackets, yes, exactly like that.-fetchdirectory β base path for retrieving XML files.-streamdirectory β path for retrieving compressed XML files, and they get left compressed, so don't come for me about it.-flagstrict|mixed|none β an alternative syntax for specifying the corresponding options. same vibe, different outfit. π-gzipβ use compression for the local XML files.-hashβ prints UIDs and checksum values to standard output.-trie[type] β prints the file path forarchive(that's the default), orindices,increment, orposting[s].-padzβ pads the PMIDs with leading zeros until they're eight characters long. tiny but mighty. π
π Local Record Index π
-e2index[extras] β creates Entrez index XML. extras istrueorfalse, and it tells you whether to index the extra fields βfalseis the default.-e2invertarchive β this is the combined-e2indexand-invertin archive. two for one, ate.-joinβ collects subsets of inverted index files. gathering the girlies. π«Ά-fuseβ combines subsets of inverted index files. now they're one. π-mergedirectory field β combines inverted indices, dividing by term prefix.-promotedirectory field β creates the term lists and the posting files.-pathdirectory β path to the postings directory.-queryquery β searches on words or phrases inside Boolean formulas.-exactquery β a strict search, for article round-tripping.-titlequery β exact search, but limited to the indexed title field.-countquery β prints terms and counts, merging the wildcards.-countsquery β expands the wildcards and prints individual term counts instead.
π Documentation π
-helpβ prints usage info plus some example argument combinations. if you're lost, start here bestie π¦-versionβ prints the version number. β
π SEE ALSO π
archive-nihocc(1), archive-nlmnlp(1), archive-nmcds(1), archive-pids(1), archive-pmc(1), archive-pubmed(1), archive-taxonomy(1), custom-index(1), download-flatfile(1), download-pubmed(1), pm-clean(1), pm-collect(1), pm-prepare(1), pm-refresh(1), pm-setup(1), xfetch(1), xfilter(1), xinfo(1), xlink(1), xsearch(1), xtract(1).
go read the whole friend group, iykyk π«Ά
and that's the whole thing, bestie β brought to you by NCBI, dated 2025-05-26. mwah π
π¦ where this page comes from
- debian trixie: ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 Β· PD
- ubuntu questing: ncbi-entrez-direct 24.0.20250523+dfsg-1
- ubuntu resolute: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- ubuntu stonking: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms