User 7b0ee04e66
26-11-2008 15:32:40
Hello,
I store alignment templates as Extended Smiles with co-ordinates.
The user draws the template they wish to align to using Marvin Sketch,
(see Macrocycle.mrv)
Molecule mol = m_MarvinSketchPane.getMol();
String sMol = mol.exportToFormat("cxsmiles:+c");
sMol = CC(C)(C)OC(=O)N[C@H]1CCCCC\C=C/[C@@H]2C[C@]2(CC(=C)[C@@H]2C[C@H](CN2C1=O)OC(=O)N1CC2=CC=CC(F)=C2C1)C(=O)NS(=O)(=O)C1CC1 |r,c:14,39,42,t:37,(-10.46,1.54,;-10.86,.05,;-11.26,-1.44,;-12.19,.82,;-9.53,-.72,;-8.19,.05,;-8.19,1.59,;-7.1,-1.04,;-5.61,-.64,;-4.02,-1.92,;-5.11,-3.01,;-4.71,-4.49,;-3.22,-4.89,;-2.13,-3.8,;-.65,-4.2,;.44,-3.11,;.04,-1.63,;1.58,-1.63,;.81,-.29,;.04,1.04,;-1.5,1.04,;-1.89,-.45,;-2.58,2.13,;-2.11,3.59,;-3.35,4.5,;-4.6,3.59,;-4.12,2.13,;-5.46,1.36,;-6.95,1.76,;-3.35,6.04,;-2.27,7.13,;-2.66,8.62,;-.73,7.13,;-.25,5.66,;1.29,5.66,;2.32,4.52,;3.83,4.84,;4.3,6.3,;3.27,7.45,;4.04,8.78,;1.77,7.13,;.52,8.03,;2.3,.11,;2.3,1.65,;3.64,-.66,;4.97,.11,;4.57,1.59,;6.06,1.2,;6.06,-.98,;5.29,-2.32,;6.83,-2.32,)|
When the Molecule is displayed back to the user, it appears modified (e.g. the chirality is not displayed on the same bonds as before).
mol = MolImporter.importMol(sMol);
marvinSketchPane.setMol(mol);
What can I do to solve this problem?
I am trying to avoid storing the Mol File, or the mrv file.
I have attached the molecule before and after.
I am using Marvin 5.1.1
Thanks
Catherine
I store alignment templates as Extended Smiles with co-ordinates.
The user draws the template they wish to align to using Marvin Sketch,
(see Macrocycle.mrv)
Molecule mol = m_MarvinSketchPane.getMol();
String sMol = mol.exportToFormat("cxsmiles:+c");
sMol = CC(C)(C)OC(=O)N[C@H]1CCCCC\C=C/[C@@H]2C[C@]2(CC(=C)[C@@H]2C[C@H](CN2C1=O)OC(=O)N1CC2=CC=CC(F)=C2C1)C(=O)NS(=O)(=O)C1CC1 |r,c:14,39,42,t:37,(-10.46,1.54,;-10.86,.05,;-11.26,-1.44,;-12.19,.82,;-9.53,-.72,;-8.19,.05,;-8.19,1.59,;-7.1,-1.04,;-5.61,-.64,;-4.02,-1.92,;-5.11,-3.01,;-4.71,-4.49,;-3.22,-4.89,;-2.13,-3.8,;-.65,-4.2,;.44,-3.11,;.04,-1.63,;1.58,-1.63,;.81,-.29,;.04,1.04,;-1.5,1.04,;-1.89,-.45,;-2.58,2.13,;-2.11,3.59,;-3.35,4.5,;-4.6,3.59,;-4.12,2.13,;-5.46,1.36,;-6.95,1.76,;-3.35,6.04,;-2.27,7.13,;-2.66,8.62,;-.73,7.13,;-.25,5.66,;1.29,5.66,;2.32,4.52,;3.83,4.84,;4.3,6.3,;3.27,7.45,;4.04,8.78,;1.77,7.13,;.52,8.03,;2.3,.11,;2.3,1.65,;3.64,-.66,;4.97,.11,;4.57,1.59,;6.06,1.2,;6.06,-.98,;5.29,-2.32,;6.83,-2.32,)|
When the Molecule is displayed back to the user, it appears modified (e.g. the chirality is not displayed on the same bonds as before).
mol = MolImporter.importMol(sMol);
marvinSketchPane.setMol(mol);
What can I do to solve this problem?
I am trying to avoid storing the Mol File, or the mrv file.
I have attached the molecule before and after.
I am using Marvin 5.1.1
Thanks
Catherine