152 static char classtab[16] =
"HHGGGHGGGH";
158 while(fgets(buffer,159,fp))
164 if(!strncmp(buffer,
"ATOM ",6))
break;
167 if(!strncmp(buffer,
"SHEET ",6))
169 fsscanf(buffer,
"%21x%1s%4d%1s%5x%1s%4d%1s",
170 chain1, &res1, insert1,
171 chain2, &res2, insert2);
177 if(!strncmp(buffer,
"HELIX ",6))
179 fsscanf(buffer,
"%19x%1s%1x%4d%1s%5x%1s%1x%4d%1s%2d",
180 chain1, &res1, insert1,
181 chain2, &res2, insert2,
184 type=classtab[
class];
188 if(!strncmp(buffer,
"TURN ",6))
190 fsscanf(buffer,
"%19x%1s%4d%1s%5x%1s%4d%1s",
191 chain1, &res1, insert1,
192 chain2, &res2, insert2);
219 strcpy(p->
chain1, chain1);
220 strcpy(p->
chain2, chain2);
266 static char classtab[16] =
"HHGGGHGGGH";
279 if(!strncmp(s->
string,
"ATOM ",6))
break;
282 if(!strncmp(s->
string,
"SHEET ",6))
285 chain1, &res1, insert1,
286 chain2, &res2, insert2);
292 if(!strncmp(s->
string,
"HELIX ",6))
295 chain1, &res1, insert1,
296 chain2, &res2, insert2,
299 type=classtab[
class];
303 if(!strncmp(s->
string,
"TURN ",6))
306 chain1, &res1, insert1,
307 chain2, &res2, insert2);
334 strcpy(p->
chain1, chain1);
335 strcpy(p->
chain2, chain2);
SECSTRUC * blReadSecPDB(FILE *fp, int *nsec)
Include file for PDB routines.
int fsscanf(char *buffer, char *format,...)
Include file for fsscanf()
SECSTRUC * blReadSecWholePDB(WHOLEPDB *wpdb, int *nsec)
System-type variable type definitions.
Type definitions for maths.