ECOLLECT(1)

πŸ“¦ version 24.0.20250523, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ecollect(1) ✨

okay so bestie, welcome to ecollect β€” it's the NCBI Entrez Direct user's manual page, and no cap, this little tool is the one that goes and gets you the unique identifiers from NCBI Entrez. πŸŽ€


πŸ’– NAME πŸ’–

ecollect β€” list NCBI Entrez unique identifiers

Like, that's it. That's the whole job. It lists UIDs. And it does it beautifully. πŸ’…


🌸 SYNOPSIS 🌸

ecollect -db name -web str -key N [-days|-reldate N] [-datetype field]
[-mindate date] [-maxdate date]

ecollect -db name -query str [-days|-reldate N] [-datetype field]
[-mindate date] [-maxdate date]

ecollect -db name -id str...|-rest str|-input file

So there's three whole vibes you can run this in: hit it with a live query via -web + -key, or via -query, or just hand it UIDs you already have. Pick your lane. πŸ¦‹


🌈 DESCRIPTION 🌈

ecollect lists unique identifiers from NCBI Entrez, either corresponding to a live query or explicitly supplied. Either way? It hands them to you:

  • one per line πŸ“
  • in numerical order πŸ”’
  • with any duplicates consolidated ✨

not me being obsessed with a tool that just cleans up after itself. iconic behavior fr fr. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

πŸ’œ Source Specification πŸ’œ

  • -db name β€” the Entrez database name. And heads up bestie: this one is mandatory even when you're explicitly supplying UIDs. Yeah, even then. Don't skip it. 😭
  • -web str β€” the NCBI WebEnv value that corresponds to a previous query. You can optionally still filter it further by date if you want. πŸ—“οΈ
  • -key N β€” that query's number. (the little companion to -web, they're a package deal 🫢)
  • -query str β€” a query string. Just, like, say what you want. πŸ’¬
  • -id str ... | -rest str β€” existing UID(s) to format. They may be internally delimited by whitespace and any punctuation other than . or _. ⚠️ yep, . and _ are NOT delimiters, so don't come for me when they don't split.
  • -input file β€” read UIDs from the specified file. πŸ“

🌸 Date Constraint 🌸

  • -days | -reldate N β€” return only results from the past N days. πŸ•°οΈ
  • -datetype field β€” which date field (in abbreviated form) to consider. πŸ‘€
  • -mindate date β€” start of date range. πŸŒ…
  • -maxdate date β€” end of date range. πŸŒ™

πŸ‘‘ SEE ALSO πŸ‘‘

cit2pmid(1), combine-uid-lists(1), difference-uid-lists(1), efetch(1), efilter(1), elink(1), esearch(1), exclude-uid-lists(1), intersect-uid-lists(1), nquire(1), xfetch(1), xfilter(1), xlink(1), xsearch(1).

the whole friend group is linked, go say hi πŸ’–


and that's the page!! this one's from NCBI, dated 2025-05-26, and it lives in the NCBI Entrez Direct User's Manual. mwah, go collect those UIDs bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from