GLYLIB
0.3.0b
|
00001 /** \file load_pdb.h 00002 \brief Header file for loading pdb files into structures. 00003 00004 Begun at some point in the past by BLFoley and possibly modified at some 00005 point by Mike Tessier. See also the load_pdb functions.*/ 00006 00007 #if !defined(GLYLIB_LOADPDB) 00008 #define GLYLIB_LOADPDB 00009 #include <molecules.h> 00010 #include <structures.h> 00011 #include <mylib.h> 00012 00013 #define LA (int)0 00014 /** \addtogroup PDB 00015 * @{ 00016 */ 00017 assembly* load_pdb(char* file_name); 00018 int howManyMolecules(); 00019 assembly* getAssembly(); 00020 int findTotalResidue(int start); 00021 int endOfMol(linedef* line); 00022 int isAtom(linedef* line); 00023 int getResInfo(residue* res, int start); /** returns start line for next molecule */ 00024 void init_struct(); 00025 linetype get_type(char*); 00026 void pdb_def(); /* contains definitions of lines and fields */ 00027 // moving this to mylib where the other read error functions are 00028 //void read_neek(const char*,int,int); 00029 void rwm_line(int); /* read in pdb, call to modify, write out pdb */ 00030 molecule load_pdb_from_slurp(fileslurp in); 00031 fileslurp isolateInputPDB(fileslurp S); 00032 fileslurp isolateDockedPDB(fileslurp S); 00033 void init_struct_slurp(fileslurp S); 00034 void rwm_line_char(char* curLine, int rwmln); 00035 molecule* getMolecule(void); 00036 void set_assembly_atom_molbonds_from_PDB_CONECT(assembly *asmbl, linedef *ln, const char *file_name, int nlines); 00037 void set_assembly_residue_molbonds_from_PDB_LINK(assembly *asmbl, linedef *ln, const char *file_name, int nlines); 00038 00039 FILE *IN; 00040 linedef line[1]; 00041 int WARN,SILENT; /* default is "false" (=1). "true" is 0 */ 00042 char froot[200],suf[6],sufc[20]; 00043 char ACT; // Flag tells program what to do 00044 int INWC,DATE; /* number of lines in input file, date */ 00045 int UNCUT,UNx,UNy,UNz; /* flags for uncutting the box */ 00046 int LASTRES,LASTOKX,LASTOKY,LASTOKZ; 00047 float UNCTOL,CRYX,CRYY,CRYZ,LASTX,LASTY,LASTZ; 00048 int DEBUG; 00049 /** @}*/ 00050 #endif