User 870ab5b546
04-02-2011 15:40:10
I don't know if this is a bug or a feature, but consider this target:
<?xml version="1.0" ?>
<cml>
<MDocument>
<MChemicalStruct>
<molecule molID="m1">
<atomArray
atomID="a1 a2 a3 a4 a5 a6 a7"
elementType="C C C C C C R"
sgroupRef="0 0 0 0 0 0 sg1"
x2="-1.9730666666666667 -3.3068000000000004 -3.3068000000000004 -1.9730666666666667 -0.6395200000000001 -0.6395200000000001 -0.6876450286102296"
y2="2.598773333333334 1.8287733333333336 0.2887733333333334 -0.4812266666666667 0.2887733333333334 1.8287733333333336 3.513148180745443"
/>
<bondArray>
<bond atomRefs2="a1 a2" order="1" />
<bond atomRefs2="a1 a6" order="1" />
<bond atomRefs2="a3 a4" order="1" />
<bond atomRefs2="a4 a5" order="1" />
<bond atomRefs2="a5 a6" order="2" />
<bond atomRefs2="a6 a7" order="1" />
<bond atomRefs2="a2 a3" order="1" />
</bondArray>
<molecule id="sg1" role="SuperatomSgroup" title="Ph" molID="m2">
<atomArray
atomID="a8 a9 a10 a11 a12 a13"
elementType="C C C C C C"
attachmentPoint="1 0 0 0 0 0"
sgroupAttachmentPoint="1 0 0 0 0 0"
x2="2.7016623082636517 2.701662308263649 1.3679831864356125 0.03430406460757762 0.034304064607578955 1.3679831864356142"
y2="9.095624980926512 7.5556249809265115 6.785624980926514 7.555624980926516 9.095624980926516 9.865624980926516"
/>
<bondArray>
<bond atomRefs2="a8 a9" order="2" />
<bond atomRefs2="a8 a13" order="1" />
<bond atomRefs2="a9 a10" order="1" />
<bond atomRefs2="a10 a11" order="2" />
<bond atomRefs2="a11 a12" order="1" />
<bond atomRefs2="a12 a13" order="2" />
</bondArray>
</molecule>
</molecule>
</MChemicalStruct>
</MDocument>
</cml>
This target fails to match the query C1CCC(=CC1)C1=CC=CC=C1.
However, if one turns on View E/Z stereo in Marvin, Marvin fails to show an E/Z marker for the cyclohexene ring in either the target or the query, implying that it assumes that the stereochemistry is E, even if the structure is badly drawn, as it is in the target.
Taken together, this behavior appears to be inconsistent.
I would suggest that whether a cycloalkene is E or Z should be determined by the mutual orientation of the ring bonds, not any substituents outside the ring. With this assumption, the target would be calculated as having E stereochemistry, and it would match the query, as one would expect.
If you don't want to implement that change, then show E/Z stereochemistry for ring bonds.