rdkit-js icon indicating copy to clipboard operation
rdkit-js copied to clipboard

How to use get_mol() on pdb proteins?

Open dschlesinger opened this issue 2 years ago • 4 comments

I noticed you can't use the get_mol() function on pdb files, I was trying to use morgan fingerprint encoding on protein and ligand for an ML application. Wondering if that is possible using RDKIT-JS. Is there a similar functionality to getMolFromPDBFile().

It works on smiles but returns null when given a PDB format. I also noticed that you can use a JSON for get mol. What format would that take and could I use that for my protein? Documentation was unclear.

dschlesinger avatar Nov 04 '23 19:11 dschlesinger

I had the same problem, but I could not find a solution. Can anyone help?

ghost avatar Nov 04 '23 19:11 ghost

Any updates on this?

ghost avatar Nov 15 '23 02:11 ghost

get_mol currently takes SMILES, CXSMILES and CTAB strings as input, not PDB strings.

ptosco avatar Nov 15 '23 10:11 ptosco

Hi, thank you for your response!

Do you know of any way to load a pdb file in js? Am probably going to switch to Python to utilize that version of rdkit. However it would be optimal to use js.

Thanks,

dschlesinger avatar Nov 16 '23 00:11 dschlesinger