This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Retrieve MeSH Unique ID (CUI) from Entrez eFetch

I am using the Entrez EUtilities and attempting to retrieve the MeSH CUI / Unique ID listed on the search page for a particular MeSH entry. I can see that the CUI is available when searching in the UI - see highlighted portion: enter image description here

However, when I extract this entry via eFetch or eSummary, all the information is available in the output except for the CUI (see this page: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=mesh&id=68016532).

Is this variable supposed to be available for extraction?

mesh entrez ncbi

1 answer

Using EntrezDirect command line utils:

$ esearch -db mesh -query "mucopolysaccharidosis II" | esummary | xtract -pattern DocumentSummary -element DS_MeSHUI
D016532
$ esearch -db mesh -query "mucopolysaccharidosis I" | esummary | xtract -pattern DocumentSummary -element DS_MeSHUI
D008059

Log in to answer this question.