Package schrodinger :: Package protein :: Module membrane :: Class Membrane_Model
[hide private]
[frames] | no frames]

Class Membrane_Model

Instance Methods [hide private]
 
__init__(self, ct=None)
 
generate_dummy_atoms(self)
 
findVectorAtoms(self)
Return a list of 2 atom numbers for the vector dummy atoms
 
remove_dummy_atoms(self)
Delete the vector atoms and other dummy atoms
 
get_vector_atoms_from_internal_coords(self)
 
update_internal_coords_to_vector_atoms(self, coords1, coords2)
Update internal coordinates from 2 numpy arrays containing the x,y,z coordinates of two atoms defining the membrane.
 
updateFromVector(self)
Update internal coordinates from vector dummy atoms in self.ct
 
createVectorAtoms(self)
Add vector dummy atoms to the specified Structure based on membrane coordinates
 
deleteVectorAtoms(self)
Delete the vector atoms
 
getCenterOrientationOfAtoms(self, atom_list)
 
autoPlaceByMolecule(self, mol_atom_lists)
Auto places the membrane based on the average vector between all specified molecules (list of atom iterators)
 
findHydrophobicCenter(self)
Returns coordinates of center of mass of all hydrophobic residues
 
autoPlace(self)
Automatically orient the membrane according to the protein in self.ct
 
rotateProteinToMembrane(self, rotate_membrane=True)
Translate the protein so that the membrane will be located at the origin and rotate the protein so that membrane is along the z-axis.
 
calculateMembraneBox(self)
Stores OpenGL representation of the membrane box (2 red squares) in this instance.
 
draw(self)
Draws the red membrane squires to the workspace.
 
clear(self)
Remove the 3D objects from the group, which removes them from Maestro's fit bounds.
 
write_structure(self, filename)
 
write_parameter_file(self, filename)
Method Details [hide private]

rotateProteinToMembrane(self, rotate_membrane=True)

 

Translate the protein so that the membrane will be located at the origin and rotate the protein so that membrane is along the z-axis. Assumes that center/orientation/thickness are set.

At the end the protein will not have vector atoms.

rotate_membrane = whether to adjust self.center/self.orientation according to the new position (orientation along z-axis).

calculateMembraneBox(self)

 

Stores OpenGL representation of the membrane box (2 red squares) in this instance. These boxes can later be drawn to the workspace by calling the draw() method.

The membrane info is taken from center/orientation/thickness

draw(self)

 

Draws the red membrane squires to the workspace. Should be invoked within a workspace_draw routine.