Partition to generate structural partitions for a structure containing
a single ring system. Beyond the lowest partitionings, the classification
only applies to the ring-system portion of the input structure.
|
__init__(self,
st_orig,
smiles_stereo=None,
smiles_nostereo=None)
Create partitions for a single input structure. |
|
|
String
|
getRep(self,
partitioning)
Return the partition name (representation) of the structure at the
specified partitioning. |
|
|
List
|
getReps(self)
Return a list containing the partition names (representations) of the
structure at all partitionings. |
|
|
Dictionary
|
getFullReps(self)
Return dictionary of data associated with the representation at every
partitioning. |
|
|
|
_setIatomIsAromatic(self)
Create and store a list giving aromatic status (True or False) for
each atom, indexed by atom number (index origin 1): |
|
|
|
_setSelfStInfo(self,
st=None)
Isolate ring structure in self.st into self.ring_st and set self data
structures to values consistent with self.st and self.ring_st. |
|
|
|
_setFullReps(self,
partitioning,
sm,
rep,
st)
Set results in the top-level data structure for the specified
partitioning: |
|
|
|
_genReps(self)
Generate the representations at all partitionings. |
|
|
Bool
|
_isEligibleToDisconnect(self,
ring_bonded_atoms)
Determine whether the atoms in ring_bonded atoms have characteristics
that allow their intervening atom to be excised and these two atoms
joined. |
|
|
Bool
|
_disconnectIfEligible(self,
iatom)
Disconnect iatom from its ring neighbors and join the ring neighbors
to each other (contracting the ring), unless the conditions tested in
_isEligibleToDisconnect are met. |
|
|
|
_removeEligibleRingAtoms(self)
Remove ring atoms that can be removed, contracting rings to minimum
size. |
|
|
String
|
_genRep4(self)
Generate the partitioning='4' SMILES. |
|
|
String
|
_getAromaticFromStarRep(self,
star_rep)
Convert a "star" representation like '[*]1[*][*]1' to an
aromatic/aliphatic representation, like '[a]1[a][a]1' or
'[A]1[A][A]1', by matching against the current structure, then (for
each match) replacing '*' by the aromatic designation of the matching
atom in the original st, then picking the lowest-sorting match. |
|
|
String
|
_aromatizeStarRep(self,
match,
star_rep)
Given a star rep and a match to it, replace each '*' with 'a' or 'A',
depending on whether the corresponding matching atom was aromatic or
not in the original st. |
|
|
tuple
|
_isolateRingSystem(self,
iatom_in_ring)
Given a structure with a ring system to which iatom_in_ring belongs,
return a structure that is a copy of the ring system, only. |
|
|
|
_genRep3a(self)
Return the partitioning-'3a' representation. |
|
|
|
_reBond(self)
Break bonds between ring and non-ring atoms in self.st |
|
|