How to find the top two NIH institutes that have funded research pertaining to pregnancy and diabetes since 2015?
0
0
Entering edit mode
13 months ago

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 • 289 views
ADD COMMENT

Login before adding your answer.

Traffic: 2205 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6