A frame which allows the user to reorder the atoms of a comparison
structure based on the atom order of a reference structure. The widgets
provide the ability to guess at atom order based on multiple algorithms
and also manually specify order using 2D images of the structures.
|
__init__(self,
parent=None,
by_element=True,
by_smiles=True,
by_smarts=True,
by_superposition=True,
layout=None,
reference_structure=None,
comparison_structure=None)
Create a ReorderAtomFrame widget |
|
|
|
setStructures(self,
reference,
comparison)
Set the reference and comparison structures |
|
|
|
guessMode(self,
guessmode)
Set the current guess mode - affects label texts and
enabling/disabling widgets and user interaction signals. |
|
|
|
selectRefAtom(self,
index)
Select the current atom in the reference structure |
|
|
|
mapPair(self,
ref_index,
comp_index,
advance=True,
guess=False)
Create a mapping between an atom in the Comparison structure to an
atom in the Reference structure. |
|
|
|
unmapPair(self,
ref_index,
comp_index)
Create a mapping between an atom in the Comparison structure to an
atom in the Reference structure. |
|
|
|
mapCompAtom(self,
comp_index,
ref_index=None,
auto=True,
advance=True)
Map an atom in the Comparison structure to an atom in the Reference
structure |
|
|
|
autoMap(self)
Automatically map no-brainer atoms based on the current mapping. |
|
|
int
|
compAtomFromRefAtom(self,
index)
Get the atom in the Comparison structure that is mapped to the given
index in the Reference structure |
|
|
int
|
refAtomFromCompAtom(self,
index)
Get the atom in the Reference structure that is mapped to the given
index in the Comparison structure |
|
|
|
|
|
|
|
highlightMapPair(self,
ref_index,
comp_index)
Highlight the mapped pair of atoms |
|
|
|
guessOrder(self)
Make a guess at the new order of the Comparison atoms |
|
|
|
guessAccepted(self)
User has accpeted the guess, make the atoms truly mapped |
|
|
|
guessRejected(self)
User has rejected the guess remove it |
|
|
bool
|
|
|
finishGuess(self)
Finish guess mode after the user has accepted or rejected the guess. |
|
|
bool
|
|
schrodinger.structure.Structure, list or (None,
None)
|
|
|
resetMap(self)
Reset only the map, keeping the structures |
|
|
|
reset(self,
reset_structures=True)
Reset the frame |
|
|