Trees | Indices | Help |
|
---|
|
object --+ | RgroupEnumerator
Enumerate a structure using R-group sources. A source is a sequence with an iterable of Structure as its first element, followed by one or more core atom atom indices where the side chains from the source should be inserted. RgroupEnumerator objects are iterable. Example: sources = [ (StructureReader('r1.maegz'), 4, 12), (StructureReader('r2.maegz'), 8), ] for prod_st in RgroupEnumerator(core_st, sources): ... will use the first reader to replace atoms 4 and 12 in an homo fashion (meaning that for a given product, the groups attached to atoms 4 and 12 are always the same), in combination with the structures for the second reader for atom 8. The structures in each R-group source should each have one dummy atom (symbol '', atomic number zero). The user of the class can request only a slice of the full set of combinations to be yielded, by providing the optional 'start' and 'stop' constructor arguments. These follow the standard Python slicing convention.
|
|||
|
|||
|
|||
schrodinger.structure.Structure |
|
||
2-tuple (list of int, int) |
|
||
|
|||
|
|||
Inherited from |
|
|||
|
Initialize an enumerator for a given core structure and specification of rgroup sources.
|
Attach the sidechains to the core structure and return the resulting structure.
|
Attach a sidechain to the core at the specified atom index. Returns the indices of the two atoms that should be deleted, as well as the index of the sidechain atom that is now bonded to the core. (This low-level method doesn't delete them because the caller may be attaching multiple sidechains, and deleting each time could trigger confusing renumbering and be less efficient.)
|
Generate 3D coordinates for the non-core atoms in the structure using fast3d.
|
Superimpose the product structure on the input core.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:33:28 2017 | http://epydoc.sourceforge.net |