How many native rdkit functions are available in current RDKit.js(2022.3.1) ? #5178
-
|
Except for the MolDrawOptions series display parameters, how many native methods of RDKit are currently available in this js library? It would be better if there was a list of available methods or functions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
@ShangChien you're right you can investigate this with the browser developer console, you can also check what is available on the mol and qmol objects like so: main RDKit module (a lot of noise, but notice a few rdkit related class and functions like Mol, SubstructLibrary, get_mol, get_mol_copy, get_qmol, prefer_coordgen, version, etc): Also available is the Another place to give you an idea of what is available is in the jswrapper.cpp source code of the minimal lib here https://github.com/rdkit/rdkit/blob/master/Code/MinimalLib/jswrapper.cpp These two things combined with all available demos:
Is all there is at the moment unless Greg, Paolo or David says otherwise. All this being said, for sure there is room for improvements in terms of documentation to have a centralized api documentation for each class and functions available would be the best. Wasm doesn't seem to make it easy to automate this, but I'm sure we can put in place some processes to maintain a clean API doc for the minimallib. |
Beta Was this translation helpful? Give feedback.




@ShangChien you're right you can investigate this with the browser developer console, you can also check what is available on the mol and qmol objects like so:
main RDKit module (a lot of noise, but notice a few rdkit related class and functions like Mol, SubstructLibrary, get_mol, get_mol_copy, get_qmol, prefer_coordgen, version, etc):
mol object:
qmol object:
Also available is the
SubstructLibrary(window.RDKit.SubstructLibrary) that you can look into if you want.Another place to give you an idea of what is available is in the jswrapper.cpp source code of the minimal lib here https://github.com/rdkit/rdkit/blob/master/Code/MinimalLib/jswrapper.cpp
These two things combined with al…