Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return MESH headings for articles #18

Open
brandonStell opened this issue Sep 29, 2019 · 1 comment
Open

Return MESH headings for articles #18

brandonStell opened this issue Sep 29, 2019 · 1 comment
Assignees

Comments

@brandonStell
Copy link

For each DOI there are a series of keywords, called MESH headings in the pubmed (eutils) metadata.

e.g.
DOI: 10.1038/s41419-017-0128-y
Note that the keywords are not in the crossref data:

curl -D - -L -H   "Accept: application/unixref+xml" "https://doi.org/10.1038/s41419-017-0128-y"

But they are in the eutils data under the <MeshHeading> tag:
https://www.ncbi.nlm.nih.gov/pubmed/?term=Transmembrane+protein+170B+is+a+novel+breast+tumorigenesis+suppressor+gene+that+inhibits+the+Wnt&report=xml&format=text

@brandonStell
Copy link
Author

brandonStell commented Sep 29, 2019

we could use the existing tags table to hold the keywords.

I guess the code for it would be here:
https://github.com/PubPeerFoundation/PublicationDataExtractor/blob/master/src/Resources/Extractors/EutilsEfetch.php

here is a total guess for what the code might look like:

 public function extractTagsData(): void
    {
        foreach ($this->searchTree->PubmedData->MeshHeadingList->MeshHeading->DescriptorName as $tag) {
            $this->resourceOutput['tags'] = [
                'value' => (string) $tag
           ];
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants