Save the struct and break it into fragments.
|
__init__(self,
struct,
num_struct,
dihedral_min=0.0,
dihedral_max=360.0,
dihedral_num=72,
dihedral_exclude=False,
only_int=False,
only_backbone=False,
logger=None)
Prepare infomation for in-cell grow of one single polymer chain. |
|
|
|
renumberResGetM2PMap(self,
polymer)
Loop over all the residues and create mapping from atom id in residue
to that in polymer. |
|
|
|
|
|
|
|
setResidueConnectivity(self,
polymer,
moiety,
residue_num)
Create mapping from connected resnum pair to connected atom pair. |
|
|
|
|
|
setPathtoBranchingAtom(self,
moiety_bb_to_marked_end,
residue_num)
Update maps for the path between backbone atom to atom branching
point. |
|
|
|
setRotatableBond(self,
moiety_rotatable_bonds,
residue_num)
Update maps for the path between backbone atom to atom branching
point. |
|
|
|
createFragForInitiator(self)
Create the the first polymer fragment from the initiator and append
the following children of it. |
|
|
|
finishPolymerFrags(self,
polymer)
Generate all polymer fragments from the first generation fragment
containing INT and the following generation fragments. |
|
|
|
assignRingAtomIds(self)
Assign ring atom indexes to each fragment. |
|
|
|
structToOriginByFrag(self,
struct,
frag)
Move the structure so the centroid of the fragment is at the origin. |
|
|
list
|
getFragCentroid(self,
struct,
frag)
Calculate the centroid of polymer fragment. |
|
|
iterator to generate int, [int, int]
|
|
|
delConnectivity(self,
cur_resnum,
next_resnum,
atom_id,
next_atom_id)
Delete the connectivity from current residue to next residue and the
connectivity from next residue to current residue. |
|
|
PolymerFragment or None
|
createEndSubFragment(self,
cur_frag,
dihe_3th_resnum,
sub_backbone,
dihe_4th_resnum,
dihe_4th_atom_id,
append_to_frag=None)
Create one child PolymerFragment or append atoms to append_to_frag. |
|
|
|
|
list of int
|
resBackbone(self,
resnum,
atom_id)
Given residue number and starting atom id, return the short backbone
path (from the starting atom id to the end) and set head/tail using
dictionary. |
|
|
list, int
|
continueResBackbone(self,
polymer,
atom_id)
Return rest of the backbone path continuing from the atom_id. |
|
|
int or None
|
|
iterator to generate int, [int, int]
|
|
|
extractMoieties(self)
Extract residue structures in a polymer and save one for each residue
type. |
|
|
|
updateOrigAtomIdx(self)
Update the MONOMER_ORIG_ATOM_IDX_PROP property in each polymer atom
with the atom index of atoms in moiety_structs. |
|
|
|
polymerModifiedByUser(self)
Print message and abort. |
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|