Code Monkey home page Code Monkey logo

Comments (12)

saramsey avatar saramsey commented on September 24, 2024

maybe this can be done with the NCBI eUtils API?

from rtx.

saramsey avatar saramsey commented on September 24, 2024

Link to the fine manual here:

https://www.ncbi.nlm.nih.gov/books/NBK25501/

from rtx.

finnagin avatar finnagin commented on September 24, 2024

It looks like it can be done using NCBI eUtils. From the mesh tree structure page Congenital Abnormalities is listed with with the id C16.131.

If we then search this using esearch.fcgi we get the following result. And if we search the resulting mesh id using esummary.fcgi we can see that this is this is indeed congenital abnormalities.

from rtx.

saramsey avatar saramsey commented on September 24, 2024

nice, thanks Finn. can you expose this as a new method in QueryNCBIeUtils.py ?

from rtx.

finnagin avatar finnagin commented on September 24, 2024

Actually looking at the method get_mesh_uids_for_mesh_term it looks like this method already doing what I described above so I think if we just plug the tree number into that it will work. I'll test on a few mesh tree numbers and report back.

from rtx.

finnagin avatar finnagin commented on September 24, 2024

So it almost works. That method adds [MeSH Terms] to the search so it doesn't work for tree numbers but I made a new method that does the same thing without the addition of [MeSH Terms] called get_mesh_uids_for_mesh_tree so that should work going forward.

Another thing to consider: This method should work for other searches of the mesh database not just mesh tree numbers so would it be better to call it something like get_mesh_uids_for_mesh_query instead?

from rtx.

saramsey avatar saramsey commented on September 24, 2024

from rtx.

saramsey avatar saramsey commented on September 24, 2024

from rtx.

dkoslicki avatar dkoslicki commented on September 24, 2024

@finnagin What's the status of this issue? Has the new code been implemented and thoroughly tested?

from rtx.

finnagin avatar finnagin commented on September 24, 2024

New code has been implemented but has only had limited testing. I can test it some more I'll just need to generate a list of mesh tree numbers to try.

@dkoslicki Are there any tree numbers that I should try to make sure that they work or should I just find some tree numbers arbitrarily from the mesh website?

from rtx.

dkoslicki avatar dkoslicki commented on September 24, 2024

If I recall correctly, one of the get_mesh functions in QueryNCBIeUtils was returning MeSH tree numbers (for anatomy and/or phenotypes). You might try there for testing (but just some from the website should work too). After you run a few more tests, you can go ahead and close this issue.

from rtx.

finnagin avatar finnagin commented on September 24, 2024

I did more testing and every example I tried worked so I'm going to go ahead and close this issue.

from rtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.