public String ME.smiles()
returns SMILES string of the current molecule
Limitations - SMILES is not canonized, stereochemistry not yet implemented, for disconnected molecules only one (random) part is returned
public String ME.jmeFile()
returns JME file of the current molecule as a one String
the format of the JME String is as follows
natoms nbonds (atomic_symbol x_coord y_coord) for all atoms (atom1 atom2 bond_order) for all bonds (for stereo bonds the bond order is -1 for up and -2 for down from first to second atom)
i.e. for formaldehyde (C=O) it will be "2 1 C 0. 0. O 1.2 0. 1 2 2"
public void ME.readMolecule(String molecule)
reads a molecule in JME format into the Editor
to read molecule in some other format it would be necessary to write a JavaScript function to convert this format into simple JME molecule String
public void ME.reset()
deletes current molecule
Reading molecule through the PARAM tag
Molecule may be transferred into the Editor during the page loading also through the applet's PARAM tag. The syntax is
<PARAM NAME="molecule" VALUE="molecular_string">
the molecular_string is defined in the ME.jmeFile() function. This option may be used when dynamically generating pages with editor by cgi-bin script.
But I'd like to have also mol, xyz, ... file format
To keep editor thin and fast no file conversion functions are available. You can write your own conversion function to convert JME file format in whatever you want and place it somewhere in your server.