Git Product home page Git Product logo

Comments (14)

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

Hi! I just debug the code and found that there may be something wrong with the parser of BeautifulSoup package. I changed the way from 'lxml' to 'html.parser' just now and it works. I also updated the annotation of the code, and hope it will help.
Also, the spider is not always a stable way. You can check your last issue, the worker from DrugBank said that we can parse the official data.

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

Yes, I also find it that you miss Html.parser, can you tell me where from you get the smile because am familiar with such type of smile
FC(F)(F)COC1=CC(C(=O)NCC2CCCCN2)=C(OCC(F)(F)F)C=C1 not this 9|10|14|18|19|20|178|181|283|284|285|286|299|308|332|338|339|340|341|344|345|346|347|351|352|365|366|367|380|393|405|406|528|563|566|567|571|582|592|614|615|617|637|638|639|643|661|662|663|679|680|681|682|683|689|690|691|701|703

and one thing more I think spider code needs to refine because the target is not collecting with this code am working on it maybe I find it soon and where from I can get the event number?

from ddimdl.

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

The smiles in my database have been transformed with RDKit. You can search how to use RDKit to transform the SMILES into fingerprints. Here I transform SMILES into 881 dimension vectors.
For the second question, I think you are talking about pathway rather than target, right? (Because target is obtained in Line 129 of the code ) In fact, the pathway denotes the position related to the drugs' target, enzyme, carriers, and transporters. You can see the uniprot ID of the target/enzyme in the drugbank website. We used the uniprot ID and obtain its related pathways from KEGG. In fact, the result shows that the pathway didn't help much in the experiment, so we didn't carry further research.
As for the event number, you can simply replace the drugs' names in event description with DrugA and DrugB. And then use the select count(*) from XXX(table name) group by event. So that you can tag event number for the events.

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

Thanks for consideration can you guide me what is an exact prediction in it, I have print and check that [3. 2. 0. ... 2. 0. 0.] I am getting it as a prediction case or y_true. is it due to one-hot encoding?

from ddimdl.

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

The original prediction has the shape of [batch_size, event_number], and it corresponds to the shape of y_true_one_hot.
So I think [3. 2. 0. ... 2. 0. 0.] may be y_true or pred_type. They both have the shape of [batch_size, 1] or just [batch_size].
pred_type is obtained by np.argmax(prediction, axis=1).

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

i want to know that what we predict as you have said that it is due to batch size it means real one is 3 if I talk about for only one so this 3 means mechanism and action?

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

I just want to explore it on one drug as x_test means how it is working?

from ddimdl.

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

Yes, after you get the prediction result 3 for a drug-drug pair. Then you have look up the mapping relationship between your labels and mechanism, action. So that you can know the potential DDI event between the pair.

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

can we discuss it in depth with another platform rather than posting here?

from ddimdl.

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

Leave your IM app(telegram, what’s app etc) and account and I’ll contact you there.

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

+923004146023

from ddimdl.

YifanDengWHU avatar YifanDengWHU commented on June 28, 2024

Hi! Which IM app do you use? I didn't find you on telegram.

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

from ddimdl.

asadkhanmaharvi avatar asadkhanmaharvi commented on June 28, 2024

The smiles in my database have been transformed with RDKit. You can search how to use RDKit to transform the SMILES into fingerprints. Here I transform SMILES into 881 dimension vectors.

Are you talking about smiles to MOL ??

from ddimdl.

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.