How to getSmiles() with version 2.2? #614
-
Hi, as documentation says, I can get the ketcher reference in js (via iframe) but an error occurs when trying to call
getSmiles is not defined. How can I get the smiles from the new version of ketcher 2.2? Documentation -> https://lifescience.opensource.epam.com/ketcher/developers-manual.html Note: I've tried both standalone and remote versions Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Dear @ixdi , This moment Ketcher is under redesign so we are focusing on code changes rather than documentation. Documentation will be updated a little bit later. To get SMILES you need to use the following method:
Example of usage:
Best regards, |
Beta Was this translation helpful? Give feedback.
Dear @ixdi ,
This moment Ketcher is under redesign so we are focusing on code changes rather than documentation. Documentation will be updated a little bit later.
To get SMILES you need to use the following method:
getSmilesAsync(isExtended: boolean = false): Promise<string>
Example of usage:
ketcher.getSmilesAsync().then(smiFile => console.log(smiFile))
Best regards,
Andrei