epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
470 stars 165 forks source link

How can I assign the initial value of MDL Molfile V2000 through the catcher instance? #1913

Open ShiXuanP opened 1 year ago

ShiXuanP commented 1 year ago

How can I assign the initial value of MDL Molfile V2000 through the catcher instance?

Zhirnoff commented 1 year ago

@ShiXuanP Hello! Thanks for your interest in Ketcher. Please describe the problem in more detail and attach screenshots or videos.

asnipera commented 1 year ago

@ShiXuanP after ketcher Initialized,call ketcher.setMolecule(structStr) to render initial value on canvan Please check for details by https://github.com/epam/ketcher/blob/bb780b59deed2d4ca83ffcd017be386bb24e98c2/example/src/App.tsx#L70

ShiXuanP commented 1 year ago

@asnipera @Zhirnoff How can I use ketcher.setMolecule(structStr) to render this format? image

ShiXuanP commented 1 year ago

ketcher.setMolecule(structStr)Only SMILES is supported. Is there any way to support these two formats? image