User 870ab5b546
15-04-2013 18:09:47
Is there a class called MulticenterSGroup that is a subclass of Sgroup? I see Sgroup subclasses DataSgroup, MultipleSgroup, RepeatingUnitSgroup, SuperatomSgroup but there is no API for a MulticenterSGroup. However, I see references to such a class. For example, in the API for MolAtom, the constant MULTICENTER
represents the '"Atomic number" of a central atom of a MulticenterSgroup;' and, in the API for Sgroup, the constant ST_MULTICENTER
represents a 'Multicenter S-group type.' I also see a class called MultiCenterChecker.
If there is a class MulticenterSGroup, its API is missing. Please make it available.
I am trying to write code that will find the real atoms of a multicenter shortcut group from the central atom. For example, in this MRV, I find that the electron-flow arrow points to the central "atom" of the multicenter shortcut group, and, from that atom, I want to get the real atoms of the multicenter shortcut group. Note that sgroup.getAtomArray() doesn't return the central "atom" of a multicenter shortcut group, so I can't walk through the shortcut groups of the molecule and find the one that contains my central "atom". Also, sgroup.hasAtom(atom) returns false even when atom represents the multicenter attachment point of sgroup.
<?xml version="1.0"?>
<cml version="ChemAxon file format v5.10.0, generated by v5.11.5">
<MDocument>
<MChemicalStruct>
<molecule molID="m1">
<atomArray atomID="a1 a2 a3 a4 a5 a6 a7" elementType="C C Pd X Cl Cl R" sgroupRef="sg2 sg2 0 0 0 0 sg1" x2="-2.2618751525878906 -2.2618751525878906 -3.9462499618530273 -2.2618751525878906 -5.279929083681063 -5.03519440488031 -0.9281960307598549" y2="2.2618751525878906 0.7218751525878906 1.4918750524520874 1.4918751525878906 2.261875052452088 0.4029306094248042 3.0318751525878906"/>
<bondArray>
<bond atomRefs2="a1 a2" order="2"/>
<bond atomRefs2="a4 a3" convention="cxn:coord"/>
<bond atomRefs2="a3 a5" order="1"/>
<bond atomRefs2="a3 a6" order="1"/>
<bond atomRefs2="a1 a7" order="1"/>
</bondArray>
<molecule id="sg1" role="SuperatomSgroup" title="OMe" leftName="MeO" molID="m2">
<atomArray atomID="a8 a9" elementType="O C" attachmentPoint="1 0" sgroupAttachmentPoint="1 0" x2="-0.9624999570846557 0.5775000429153443" y2="6.448750019073486 6.448750019073486"/>
<bondArray>
<bond atomRefs2="a9 a8" order="1"/>
</bondArray>
</molecule>
<molecule id="sg2" role="MulticenterSgroup" molID="m3" atomRefs="a1 a2" center="a4"/>
</molecule>
</MChemicalStruct>
<MEFlow id="o2" arcAngle="-243.32835847969886" headSkip="0.25" headLength="0.5" headWidth="0.4" tailSkip="0.3">
<MAtomSetPoint atomRefs="m1.a4 m1.a3"/>
<MAtomSetPoint atomRefs="m1.a4"/>
</MEFlow>
</MDocument>
</cml>