120 REAL x1,y1,z1,x2,y2,z2,x3,y3,z3,xnew1,ynew1,znew1,
121 x21,y21,z21,r21,x23,y23,z23,r23,
123 xa,ya,za,xb,yb,zb,xs,ys,zs,
132 if(strncmp(pdb->
resnam,
"GLY", 3))
160 r21=(
REAL)sqrt((
double)(x21*x21 + y21*y21 + z21*z21));
165 r23=(
REAL)sqrt((
double)(x23*x23 + y23*y23 + z23*z23));
167 cosa=(
REAL)cos((
double)alpha);
168 sina=(
REAL)sin((
double)alpha);
179 rab=(
REAL)sqrt((
double)(xab*xab+yab*yab+zab*zab));
186 rapb=(
REAL)sqrt((
double)(xapb*xapb+yapb*yapb+zapb*zapb));
190 xs=yplus*zmin-zplus*
ymin;
191 ys=zplus*xmin-xplus*zmin;
192 zs=xplus*ymin-yplus*
xmin;
193 xnew1=x2+BondLen*(cosa*xplus-sina*xs);
194 ynew1=y2+BondLen*(cosa*yplus-sina*ys);
195 znew1=z2+BondLen*(cosa*zplus-sina*zs);
207 strcpy(cb->atnam,
"CB ");
208 strcpy(cb->atnam_raw,
" CB ");
245 if(!strncmp(p->
resnam,
"GLY", 3))
276 for(p=pdb; p!=
NULL; )
278 if(!strncmp(p->
resnam,
"GLY", 3))
280 if(!strncmp(p->
atnam,
"CB ", 4))
Include file for PDB routines.
PDB * blStripGlyCB(PDB *pdb)
BOOL blAddCBtoAllGly(PDB *pdb)
BOOL blAddCBtoGly(PDB *pdb)
void blCopyPDB(PDB *out, PDB *in)
System-type variable type definitions.
PDB * blFindNextResidue(PDB *pdb)
PDB * blFindAtomInRes(PDB *pdb, char *atnam_in)
Type definitions for maths.