GithubHelp home page GithubHelp logo

Comments (2)

francoiskroll avatar francoiskroll commented on August 17, 2024 1

Thanks a lot for your answer. Ok great, I might look into it.

Not an answer in the context of your package, but if it's useful for another user: a solution I found for specifically the data from the Therapeutic Target Database (TTD) is to download the data from them:
http://idrblab.net/web/full-data-download; Drug to disease mapping with ICD identifiers.

The file is small (few Mb) and the format is fairly simple. It uses TTD IDs though, so you will need to convert the PubChem CIDs (or whatever you use). Luckily, TTD provides the necessary data as well:
http://idrblab.net/web/full-data-download; Cross-matching ID between TTD drugs and public databases.

Happy to share more details/code if it's useful to anyone. Get in touch.

from webchem.

stitam avatar stitam commented on August 17, 2024

Many thanks @francoiskroll for raising this issue! You are not missing anything, the reason you see this response is because this data field is not handled appropriately by the pc_sect() function.

PubChem pages are quite complex in terms of data structure, we can resolve some fields but we still need to figure out others. It seems some of data fields we see on the website do not "live" on the webpage and the website only points to and renders data from another data source. Because of this e.g. figures in general are also a problem for pc_sect().

I will mark this as "enhancement" and try to allocate time to fix it, but I cannot promise this will be resolved soon. If you can come up with a solution we would be more than happy to incorporate it in the package!

In case you want to work on a solution yourself: the pc_sect() function is a convenience wrapper around two other functions which are not exported: pc_page() downloads the section of the PubChem page in a convenient format and pc_extract() attempts to further extract the data from it.

from webchem.

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.