| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
SphereMask Build a discrete grid of voxels representing a sphere |
||
|
discreteSpheres build a 3D grid with 1 inside an on the spheres, and 0 outside Centers are the centers of the spheres and radii a list of radii. |
||
|
|||
|
mols = Read('1crn.pdb')
|
||
|
radii = mols [0].defaultRadii()
|
||
|
maxr = max(radii)
|
||
|
coords = mols.chains.residues.atoms.coords [:]
|
||
|
mini = min(map(lambda x: x [0], coords)), min(map(lambda x:...
|
||
|
maxi = max(map(lambda x: x [0], coords)), max(map(lambda x:...
|
||
|
padding = 10
|
||
|
minimum = map(lambda i: int(mini [i]-maxr)-padding, [0, 1, 2])
|
||
|
maximum = map(lambda i: int(maxi [i]+ maxr+ 1)+ padding, [0, 1...
|
||
|
delta = [maximum [0]-minimum [0], maximum [1]-minimum [1], m...
|
||
|
dcpk = discreteCPK(coords, radii, 0.5, minimum, [delta [0]*...
|
||
|
|||
molsNone
|
radiiNone
|
maxrNone
|
coordsNone
|
miniNone
|
maxiNone
|
paddingNone
|
minimumNone
|
maximumNone
|
deltaNone
|
dcpkNone
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:23:02 2007 | http://epydoc.sourceforge.net |