User d727ff5bc5
13-10-2010 16:40:34
Hi,
I load a molecule in a MSketch applet using the MSketch.setMol() function; my molecule is in MDL's MOL format, and the first line contains the molecule name.
After modifying the molecule in the MSketch applet, a call to the function MSketch.getMol("mol")
gives me the correct modified structure, however the first line of the
MOL string still contains the original molecule name as defined in my
input MOL file.
The question: is there a way to change or clear the molecule name property? I tried to read the mol properties using MSketch.getMolPropertyCount(), MSketch.getMolPropertyKey() and MSketch.getMolProperty(), but no information are stored there.
Thanks a lot for your answer!
Grégori
Here is an example of a molecule that triggers the observed issue (and see the attached image for the result after modifying the molecule):
caffeine
smi2mol 2D
14 15 0 0 0 0 0 0 0 0999 V2000
2.3779 2.5747 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.6199 3.2572 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
1.7247 4.2516 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8112 4.6583 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
0.1420 3.9152 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.8580 3.9152 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-1.3680 4.7985 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.3579 3.0494 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.3779 3.0494 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-0.8580 2.1833 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-1.3678 1.3000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.1419 2.1833 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.6521 1.3000 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
0.6418 3.0492 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 1 0 0 0 0
2 14 1 0 0 0 0
3 4 2 0 0 0 0
4 5 1 0 0 0 0
5 6 1 0 0 0 0
5 14 2 0 0 0 0
6 7 1 0 0 0 0
6 8 1 0 0 0 0
8 9 2 0 0 0 0
8 10 1 0 0 0 0
10 11 1 0 0 0 0
10 12 1 0 0 0 0
12 13 2 0 0 0 0
12 14 1 0 0 0 0
M END