RCHIVE(1)

πŸ“¦
version 24.0.20250523 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ“

  • -input filename β€” read the XML from a file instead of from standard input. iconic behavior honestly.

πŸ’œ Local Record Cache πŸ’œ

  • -archive archive 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. πŸ”₯
  • -delete archive indices increment β€” literally the same paths as -archive, except this one is for deleting the inverted caches. use with intention bestie 🫢
  • -index element β€” use [parent/element@attribute^version] as the identifier. yes, with the brackets, yes, exactly like that.
  • -fetch directory β€” base path for retrieving XML files.
  • -stream directory β€” path for retrieving compressed XML files, and they get left compressed, so don't come for me about it.
  • -flag strict|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 for archive (that's the default), or indices, increment, or posting[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 is true or false, and it tells you whether to index the extra fields β€” false is the default.
  • -e2invert archive β€” this is the combined -e2index and -invert in 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. πŸ’–
  • -merge directory field β€” combines inverted indices, dividing by term prefix.
  • -promote directory field β€” creates the term lists and the posting files.
  • -path directory β€” path to the postings directory.
  • -query query β€” searches on words or phrases inside Boolean formulas.
  • -exact query β€” a strict search, for article round-tripping.
  • -title query β€” exact search, but limited to the indexed title field.
  • -count query β€” prints terms and counts, merging the wildcards.
  • -counts query β€” 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