How do I get SMIRKS String from reaction transformation?

User 30887fe773

10-11-2008 20:15:30

How do I get SMIRKS String from reaction transformation I drew on Marvin Sketch? Thanks





Hao

ChemAxon d76e6e95eb

11-11-2008 07:58:13

Save As SMARTS


(or Edit/Source/View/SMARTS)





ChemAxon supports all SMARTS features, not just the SMIRKS subset in transforms.

User 30887fe773

11-11-2008 15:52:01

I mean how do I get SMARTS or SMIRKS through API? Thanks

ChemAxon e08c317633

11-11-2008 16:02:40

Use the Molecule.toFormat(String) method.





Example:
Code:
Molecule mol = ...;


String smarts = mol.toFormat("smarts");



I hope this helps,


Zsolt

User 30887fe773

11-11-2008 16:22:53

I know it sounds a little lazy, how do I get Molecule object from Marvin bean or Applet?

ChemAxon 7c2d26e5cf

11-11-2008 23:02:01

Please see the documentation.


Applet use JMSketch.getMol(String) or JMView.getM(int,String) methods.





See the following example:


http://www.chemaxon.com/marvin/examples/applets/sketch/js_io.html





By beans, you can use the following methods:


* MSketchPane.getMol()


* MSketchPane.getMol(String)


* MViewPane.getM(int)


* MViewPane.getM(int,String)





MarvinSketch Simple Bean Example demonstrates how to get molecule from API. But the further examples may be also useful for you: Marvin Beans Examples


By the way, searching on the forum, you can find further hits about it.