NCBI-Hackathons / EDirectCookbook

MIT License
160 stars 53 forks source link

Querying "CitedBy" characteristic #13

Open cWren0110 opened 7 years ago

cWren0110 commented 7 years ago

On the web version of the NCBI site you are able to search using a keyword citedby to find all the articles/papers that cited a given article (eg https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2141773/citedby/). Is there a way to do this using EDirect? Thank you.

DCGenomics commented 7 years ago

Pinging @mikeadavidson

mikeadavidson commented 7 years ago

Let me say first that I'm not a PMC expert, so take this draft with a grain of salt:

elink -db pmc -id 2141773 -related -name pmc_pmc_citedby

This should find all of the PMC records that are "related" to PMC2141773; the specific relationship is that these records have cited PMC2141773.

Caveat 1: You'll need to add additional code to actually output PMCIDs (i.e. efetch -format uid). Caveat 2: You will not necessarily retrieve all articles that have ever cited PMC2141773. You will only retrieve articles that are in PMC that have cited PMC2141773. Caveat 3: This relies on specifying the PMCID directly in the elink. You could also pipe in an esearch or an epost, if you prefer.

If this is what you're looking for, let me know, and I'll write it up.