The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
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
}
blAddConect
BOOL blAddConect(PDB *p, PDB *q)
Definition:
BuildConect.c:173
main
int main(int argc, char **argv)
Definition:
test.c:4
NULL
#define NULL
Definition:
array2.c:99
pdb_entry
Definition:
pdb.h:298
_wholepdb
Definition:
pdb.h:372
NEXT
#define NEXT(x)
Definition:
macros.h:249
blReadWholePDB
WHOLEPDB * blReadWholePDB(FILE *fpin)
Definition:
ReadPDB.c:2328
_wholepdb::pdb
PDB * pdb
Definition:
pdb.h:374
blFindResidueSpec
PDB * blFindResidueSpec(PDB *pdb, char *resspec)
Definition:
FindResidueSpec.c:119
blWriteWholePDB
BOOL blWriteWholePDB(FILE *fp, WHOLEPDB *wpdb)
Definition:
WritePDB.c:1557
pdb_entry::conect
struct pdb_entry * conect[MAXCONECT]
Definition:
pdb.h:308
Generated on Tue Oct 24 2017 10:57:17 for Bioplib by
1.8.8