The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
test.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include "bioplib/pdb.h"
3 
4 int main(int argc, char **argv)
5 {
6  WHOLEPDB *wpdb;
7  FILE *in;
8 /*
9  int nsec, nchains;
10  DISULPHIDE *dis = NULL, *d;
11  SECSTRUC *sec = NULL, *s;
12  BOOL error;
13  char **sequences;
14 */
15  PDB *p1, *p2;
16 
17  in=fopen("test.pdb", "r");
18 
19  wpdb = blReadWholePDB(in);
20 
21 /* p1=blFindResidueSpec(wpdb->pdb, "L23"); */
22  p1=wpdb->pdb;
23  p2=blFindResidueSpec(wpdb->pdb, "L35");
24 /* wpdb->pdb = blDeleteAtomRangePDB(wpdb->pdb, p1, p2); */
25  blAddConect(p1,p2);
26  NEXT(p2);
27  blAddConect(p1,p2);
28  NEXT(p2);
29  blAddConect(p1,p2);
30  NEXT(p2);
31  blAddConect(p1,p2);
32  NEXT(p2);
33  blAddConect(p1,p2);
34  NEXT(p2);
35  blAddConect(p1,p2);
36  NEXT(p2);
37  blAddConect(p1,p2);
38  NEXT(p2);
39  blAddConect(p1,p2);
40  NEXT(p2);
41  blAddConect(p1,p2);
42 
43  p1->conect[3] = NULL;
44 
45  blWriteWholePDB(stdout, wpdb);
46 
47  return(0);
48 }
BOOL blAddConect(PDB *p, PDB *q)
Definition: BuildConect.c:173
int main(int argc, char **argv)
Definition: test.c:4
#define NULL
Definition: array2.c:99
Definition: pdb.h:298
Definition: pdb.h:372
#define NEXT(x)
Definition: macros.h:249
WHOLEPDB * blReadWholePDB(FILE *fpin)
Definition: ReadPDB.c:2328
PDB * pdb
Definition: pdb.h:374
PDB * blFindResidueSpec(PDB *pdb, char *resspec)
BOOL blWriteWholePDB(FILE *fp, WHOLEPDB *wpdb)
Definition: WritePDB.c:1557
struct pdb_entry * conect[MAXCONECT]
Definition: pdb.h:308