Giter Club home page Giter Club logo

Comments (5)

YifanDengWHU avatar YifanDengWHU commented on July 17, 2024 1

Thanks, the problems have been solved.
It seems that you're invited by Prof. Zeng for a report tomorrow, and I'm looking forward to attending it.

from caster.

kexinhuang12345 avatar kexinhuang12345 commented on July 17, 2024

Hi Yifan,

The chembl_seq.txt is a txt file containing all SMILES in the ChEMBL dataset. Each line is a SMILES string.

Yeah, the SMILES strings should be canonicalized. You can achieve this by "Chem.MolToSmiles(Chem.MolFromSmiles(SMILES_STRING))"

I suggest you generate your own ESPF fingerprint for the best performance after canonicalization. To generate, you can checkout this notebook example: https://github.com/kexinhuang12345/ESPF/blob/master/generate_drug.ipynb

from caster.

YifanDengWHU avatar YifanDengWHU commented on July 17, 2024

Hi Kexin,

The problems have been solved. However, there is still another problem which bothers me a lot. For example, for Drug:Cisplatin (DB00515), the SMILES from Drugbank is [H]N([H])Pt(Cl)N([H])[H]. The Chem.MolFromSmiles didn't work for this SMILES. (Similar circumstances occur for other SMILES which contain [Pt]). In order to deal with it, I downloaded the Mol files for these drugs and use Chem.MolToSmiles(Chem.MolFromMolFile("DB00515.mol")), and get the result of 'NPt(Cl)Cl'.

Is the procedure right?

from caster.

kexinhuang12345 avatar kexinhuang12345 commented on July 17, 2024

Yes, the issue is the element Pt should be wrapper like [Pt]; if you try [H]N([H])PtN([H])[H]; it should work.

The procedure you described also works too; 'NPt(Cl)Cl' and '[H]N([H])Pt(Cl)N([H])[H]' are the same thing, since I guess the default Chem.MolFromMolFile() may automatically remove the hydrogen key in the SMILES.

from caster.

Blaph avatar Blaph commented on July 17, 2024

Hi!
Thanks for your work.
Giving "chembl_seq.txt" along with the code, will be very helpful for people like me that have just started studying and doesn't have a clear clue on how to obtain it, but still want to use your code and be able to generate his own ESPF fingerprint.
Can you give it now, please?

from caster.

Related Issues (12)

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.