Home | Trees | Indices | Help |
|
---|
|
|
|||
| cross(b, c) | ||
| normalize(v) | ||
| bspline(v1, v2, v3, t) | ||
| interpPoints(ctrl, nchord) | ||
| ribdrw(ctrl, nrib, nchord) | ||
|
ribbon2D(nrib,
ribwid,
nchords,
offset,
natoms,
coords,
isHelix,
off_c=0.5) Generate ctrl points for protein ribbon, based on ideas on Carson & Bugg, J.Molec.Graphics 4,121-122 (1986) |
|
|||
|
cao = Numeric.array(((16.966999, 12.784000, 4.338000), (15...
|
||
|
nchords = 10
|
||
|
nrib = 2
|
||
|
nres = 46
|
||
|
natoms = 2* nres
|
||
|
offset = 1.2
|
||
|
width = 1.5
|
||
|
vi = Viewer()
|
||
|
n = smooth.shape [1]
|
||
|
f = map(lambda x:(x, x+ 1, x+ n+ 1, x+ n), range(smooth....
|
||
|
v = Numeric.array(Numeric.reshape(smooth, (-1, 4)) [:,: 3])
|
||
|
s = Spheres('sph', vertices= v, quality= 5, protected= T...
|
||
|
mol = Read('../1crn.pdb')
|
||
|
allatoms = mol.chains.residues.atoms
|
||
|
caat = allatoms.get('CA')
|
||
|
coords = caat.coords
|
||
|
p = Spheres('CA', centers= coords, radii= 0.6, protected...
|
|
|
|
|
|
|
Generate ctrl points for protein ribbon, based on ideas on Carson & Bugg, J.Molec.Graphics 4,121-122 (1986) Ctrl points for Bspline are generated along a line passing through each CA and along the average of the two peptide planes nrib number of strands in ribbon ribwid total ribbon width nchord number of chords/residue offset amount to offset ctrl points away from CA positions natom number of atoms stored in arrays coords coordinates of CA and O atoms of all residues in strand isHelix set to 1 for residues in alpha helices off_c this parameter has been added to account for DNA/RNA in the coil |
|
caoNone
|
nchordsNone
|
nribNone
|
nresNone
|
natomsNone
|
offsetNone
|
widthNone
|
viNone
|
nNone
|
fNone
|
vNone
|
sNone
|
molNone
|
allatomsNone
|
caatNone
|
coordsNone
|
pNone
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:14:24 2007 | http://epydoc.sourceforge.net |