PHRASE-SEARCH(1)
π phrase-search(1) β the NCBI Entrez Direct User's Manual glow-up π
okay so bestie, welcome to phrase-search, straight outta the NCBI Entrez Direct User's Manual. this is the one where we go digging through a local PubMed archive that you already indexed. grab a strawberry π, sit down, we're doing Boolean searches together.
β¨ NAME β¨
phrase-search β search an indexed local NCBI PubMed archive π¦
πΈ SYNOPSIS πΈ
phrase-search [-h|-help|--help] [-path dir] -count|-counts|-query
|-filter|-link
|-exact|-title|-words|-pairs|-fields|-terms|-totals query...|-convert
dbas type type [key]|-lookup tag theme...
π DESCRIPTION π
phrase-search searches an indexed local NCBI PubMed archive β like, the kind you already prepped with index-pubmed(1). that's it, that's the whole vibe. it's giving "i have a search engine at home." π
π OPTIONS π
-h,-help,--helpβ prints usage info. the classic "wait how does this work again" button π-pathdir β search the local archive that lives in dir. tell it where the goods are at π-countβ print terms and counts, merging wildcards. one big tidy tally, no dupe chaos β¨-countsβ expand wildcards and print individual term counts. every term gets its own moment, no merging here π«-queryβ search on words or phrases inside Boolean formulas. this is the main character mode π₯-filterβ filter piped-in output from a previous query (quite possibly a remote one). yes, you can chain it, we love a pipeline π«Ά-exactβ strict search, for article round-tripping. no fuzz, no guessing, exact only π-titleβ exact search, but limited to the indexed title field. titles only, we're being picky π―-linkβ follow links by the given tag (e.g.CITED), merging any duplicates. tag 'em and follow 'em π-wordsβ combine searches for individual informative words. word by word by word π-pairsβ combine searches for pairs of adjacent informative words. adjacent besties, always together π―-fields,-termsβ interpret the query as a field name and list that field's known terms. and if you pass an empty query, it lists the supported fields instead. lowkey a cheat sheet π-totalsβ like-fields, but with term counts. same energy, now with numbers π’- query... β what to search for in the modes above. it may contain the standard Boolean operators
AND,OR, andNOT, with parentheses as needed for grouping. go feral with the parentheses, it's allowed π -convertdbas type type [key] β convert identifiers in the specified database from one type to another. it accepts either a single identifier on the command line, or a newline-delimited list on standard input. π«
the database (dbas) may be any of:
meshβ Medline subject headings in generalchemβ MeSH chemicalsdiszβ MeSH diseasesgeneβ Genes
and the type may be any of:
Nameβ official nameCodeβ internal identifierTreeβ path within MeSH tree (except forgene)Descβ description (only forgene)Termβ synonym (except forgene)
not me clocking thatTreeandTermdon't dogene, andDescisgene-only. read the fine print bestie, it's right there π
-lookuptag theme... β look up cross references between internal identifiers read from standard input, where tag identifies a pair of databases (e.g.,chdifor chemicals and diseases) and theme... are theme codes of particular interest (withpandmstanding in for+and-respectively). π§
π ENVIRONMENT π
EDIRECT_PUBMED_MASTERβ the local archive directory to use in the absence of-path/-master. it's expected to hold an absolute path, and it's mandatory when you're not supplying a path on the command line. no path, no search, periodt. π
π¦ SEE ALSO π¦
cit2pmid(1), download-ncbi-data(1), edict(1), fetch-pubmed(1), filter-stop-words(1), index-pubmed(1), rchive(1), theme-aliases(1), word-at-a-time(1), xtract(1).
go read the whole friend group, they all slay π
NCBI Β· 2023-02-21 β mwah, that's the version and date bestie, this page is officially closed out. stay indexed, stay iconic, iykyk πβ¨π
π¦ where this page comes from
- debian bookworm: ncbi-entrez-direct 19.0.20230216+dfsg-2+b1 Β· PD
- ubuntu noble: ncbi-entrez-direct 19.2.20230331+dfsg-3 Β· PD
- ubuntu noble: ncbi-entrez-direct 19.2.20230331+dfsg-3ubuntu0.24.04.3 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms