FETCH-PUBMED(1)

πŸ“¦
version 19.2.20230331 Β· 2 versions
, in debian bookworm, ubuntu noble

πŸ’– FETCH-PUBMED(1) πŸ’–

okay bestie, welcome to the NCBI Entrez Direct User's Manual page for fetch-pubmed, and no cap, this one is a whole vibe 🌸


✨ NAME ✨

fetch-pubmed β€” grab records out of a local NCBI PubMed archive, picked by UID πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

fetch-pubmed [-strict|-mixed] [[-path] dir] [-all] [-fresh]
[-asn|-xml|-pme] [-turbo]

🌈 DESCRIPTION 🌈

so here's the tea πŸ“: fetch-pubmed reads a list of record IDs from standard input and prints the matching bits of a local NCBI PubMed archive β€” one that was made by archive-pubmed(1) β€” out to standard output.

and like, why would you do that? because you're probably gonna feed it to xtract(1) or something similar next. it's giving pipeline main character energy πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -strict|-mixed β€” runs rchive(1) with -flag strict or -flag mixed, respectively. pick your fighter ✨
  • [-path] dir β€” use the local archive that lives in dir. lowkey the path is optional-looking but dir is what matters 🫢
  • -all β€” dump the ENTIRE archive. all of it. not a crumb left behind 😭
  • -fresh β€” dump the entire archive into filenames shaped like pubmed001.xml.gz, and it uses any already-existing files like that as a starting point 🌱
  • -asn β€” retrieve ASN.1 ⭐
  • -xml β€” retrieve XML. this is the default btw, iykyk πŸ’š
  • -pme β€” produce ASN.1 on the fly, via pma2pme 🧚
  • -turbo β€” adds NEXT_RECORD_SIZE nodes so navigation goes zoom zoom πŸ”₯

πŸ‘‘ ENVIRONMENT πŸ‘‘

  • EDIRECT_PUBMED_MASTER β€” the local archive directory to use when you didn't pass -path. it's expected to hold an absolute path, and it is mandatory when you're not supplying a path on the command line. no path, no archive, no records β€” periodt πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

archive-pubmed(1), cit2pmid(1), ds2pme(1), edict(1), phrase-search(1), pma2pme(1), rchive(1), stream-pubmed(1), xtract(1).

the whole friend group, obsessed with them fr fr πŸ’œ


ngl, if you skipped the env var and skipped the path too, that's on you bestie πŸ™ˆ set EDIRECT_PUBMED_MASTER or pass dir, one of the two, okay?

and that's the page!! brought to you by NCBI, dated 2023-02-20, and it's the FETCH-PUBMED(1) manual page from the NCBI Entrez Direct User's Manual. slay, go fetch those records πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from