Closed SalvatoreRa closed 3 years ago
Hi @SalvatoreRa , sorry about taking so long to get to this. Sadly, it seems the MeSH database doesn't allow XML records to be downloaded, so I'm not sure this will be possibele: https://www.ncbi.nlm.nih.gov/books/NBK25499/table/chapter4.T._valid_values_of__retmode_and/?report=objectonly
You could get the 'full' (plain text) records for each MeSH hit like this
hox_mesh <- entrez_fetch(db="mesh", id=hox_data$links$pubmed_mesh_major, rettype="full")
And it might be possible to get parsable data with entrez_summary, depending on exactly what you are hoping to do wit it.
Hi, everyone
I want to collect the Mesh terms for a series of pubmed articles. taking the example: https://www.nlm.nih.gov/bsd/disted/meshtutorial/principlesofmedlinesubjectindexing/exampleofmeshindexing/index.html I want to obtain in a df for each article something similar:![mesh](https://user-images.githubusercontent.com/32837577/81574056-96604580-93a5-11ea-9972-a42bdf2b22e4.png)
I tried to follow the vignette (https://docs.ropensci.org/rentrez/)
trying the code, I am obtaining a large (1,2 mb) charachter which is basically useless to exploit
alternatively I found a code snippet used for retrieving the abstract from the XML associated from an article:
This code work great to retrieve abstracts but I did not managed to adapt for retrieving mesh termes, and I wornder if it could possible to use something similar to retrieve mesh termes from the XML (unfortunately I am not routinely using XML).
thank you for the help