This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to find the top two NIH institutes that have funded research pertaining to pregnancy and diabetes since 2015?

I'm new to Entrez searching, and I've been looking at the following article: https://dataguide.nlm.nih.gov/classes/intro/samplecode.html

Here is what I have:

esearch -db pubmed -query "(diabetes AND pregnancy AND NIH)" -datetype PDAT -mindate 2015 | \
  efetch -format xml | \
  xtract -pattern Grant -element Agency | \
  sort-uniq-count-rank | \
  head -n 2

But I don't think this is correct. Is there a way to compare only the Agency names with "NIH?"

entrez

0 answers

No answers yet.

Log in to answer this question.