Is it possible to transform pmc-ids (pubmed central ids) to pmids (pubmed ids) via a ncbi api? You can do it via the web form but I would like to use a program – of course I can always write a screen scraper … thanks
Is it possible to transform pmc-ids (pubmed central ids) to pmids (pubmed ids) via
Share
You can convert pubmed central ids to pubmed ids with EFetch, from the NCBI Entrez Programming Utilities (E-utilities). It is possible to use EFetch from any programming language that can read data from
HTTPand parseXML.For example, if one of the articles in your list is:
Wang TT, et al. J Biol Chem. 2010 Jan 22;285(4):2227-31.
PubMed PMID: 19948723 PubMed Central PMCID: PMC2807280
You can get an XML document from the following EFetch url:
“http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=2807280&rettype=medline&retmode=xml”
The XML document contains the PubMed ID:
One way to convert a pmcid to a pmid in perl is:
>perl pmcid2pmid.pl PMC2807280
PMID = 19948723