bioworld.h
Go to the documentation of this file.
1 #ifndef BIOWORLDH
2 #define BIOWORLDH
3 
4 #include "parameters.h"
5 #include "world.h"
6 #include "babel.h"
7 #include "vector.h"
8 #include "htransform.h"
9 #include "box.h"
10 
28 typedef struct {
31  unsigned int na;
32  unsigned int nb;
33  unsigned int nba;
34  double *localPos;
35  double *pos;
36  unsigned int *nbAtom;
37  unsigned int nl;
39  unsigned int *linkID;
41  unsigned int nj;
45  unsigned int *linkList;
50  boolean cut;
53 } TBioWorld;
54 
76 boolean InitBioWorld(Tparameters *p,char *filename,unsigned int maxAtomsLink,
77  double **conformation,
78  TBioWorld *bw);
79 
95 
109 
119 unsigned int BioWorldNAtoms(TBioWorld *bw);
120 
136 unsigned int BioWorldConformationSize(TBioWorld *bw);
137 
154 void BioWordGetAtomPositionsFromConformation(Tparameters *p,boolean simp,double *conformation,
155  double *pos,TBioWorld *bw);
156 
172  double *conformation,TBioWorld *bw);
173 
192 double BioWorldRMSE(double *pos,TBioWorld *bw);
193 
211 unsigned int BioWordConformationFromAtomPositions(Tparameters *p,double *atoms,
212  double **conformation,TBioWorld *bw);
213 
227 double BioWorldEnergy(Tparameters *p,boolean simp,double *conformation,void *bw);
228 
243 void SaveBioWorldBioInfo(Tparameters *p,char *fname,boolean simp,double *conformation,
244  TBioWorld *bw);
245 
266 void PrintBioWorld(Tparameters *p,char *fname,int argc,char **arg,TBioWorld *bw);
267 
275 void DeleteBioWorld(TBioWorld *bw);
276 
277 #endif
unsigned int * linkList
Definition: bioworld.h:45
unsigned int nba
Definition: bioworld.h:33
unsigned int nl
Definition: bioworld.h:37
unsigned int na
Definition: bioworld.h:31
A homgeneous transform in R^3.
unsigned int BioWorldConformationSize(TBioWorld *bw)
Number of variables used to represent a conformation.
Definition: bioworld.c:1817
void SaveBioWorldBioInfo(Tparameters *p, char *fname, boolean simp, double *conformation, TBioWorld *bw)
Stores the BioWorld information in a molecular format (eg. pdb).
Definition: bioworld.c:1911
void AdjustBioWorldGeometry(Tparameters *p, TBioWorld *bw)
Enforces all bond lengths and angles to be the same.
Definition: bioworld.c:1475
All the necessary information to generate equations for mechanisms.
Definition: world.h:229
unsigned int BioWordConformationFromAtomPositions(Tparameters *p, double *atoms, double **conformation, TBioWorld *bw)
Produces the internal coordinates from the atom positions.
Definition: bioworld.c:1882
Tvector joint1
Definition: bioworld.h:42
Definition of the Tworld type and the associated functions.
Tworld w
Definition: bioworld.h:29
Tvector links
Definition: bioworld.h:38
double BioWorldRMSE(double *pos, TBioWorld *bw)
Computes the RMSE.
Definition: bioworld.c:1860
unsigned int nb
Definition: bioworld.h:32
double * localPos
Definition: bioworld.h:34
Tbox cutB
Definition: bioworld.h:52
void DeleteBioWorld(TBioWorld *bw)
Destructor.
Definition: bioworld.c:1924
Definition of the Tbox type and the associated functions.
double BioWorldEnergy(Tparameters *p, boolean simp, double *conformation, void *bw)
Computes the energy of a given configuration.
Definition: bioworld.c:1902
Tworld * BioWorldWorld(TBioWorld *bw)
Returns a pointer to the world generated from the bio-information.
Definition: bioworld.c:1807
void PrintBioWorld(Tparameters *p, char *fname, int argc, char **arg, TBioWorld *bw)
Prints the BioWorld information into a file.
Definition: bioworld.c:1919
Minimalistic Cuik-OpenBabel interface.
A table of parameters.
void BioWordGetAtomPositionsFromConformation(Tparameters *p, boolean simp, double *conformation, double *pos, TBioWorld *bw)
Computes the position of the atoms.
Definition: bioworld.c:1822
boolean cut
Definition: bioworld.h:50
Definition of the THTransform type and the associated functions.
void BioWordSetAtomPositionsFromConformation(Tparameters *p, boolean simp, double *conformation, TBioWorld *bw)
Changes the position of the atoms.
Definition: bioworld.c:1852
A generic vector.
Definition: vector.h:227
double * pos
Definition: bioworld.h:35
A box.
Definition: box.h:83
THTransform * g2l
Definition: bioworld.h:47
Tvector joint2
Definition: bioworld.h:43
Definition of the Tvector type and the associated functions.
void TMolecule
The molecule handler type.
Definition: babel.h:33
Structure with the molecular and the mechanical information.
Definition: bioworld.h:28
unsigned int nj
Definition: bioworld.h:41
Definition of the Tparameters type and the associated functions.
unsigned int BioWorldNAtoms(TBioWorld *bw)
Number of atoms in the molecule.
Definition: bioworld.c:1812
unsigned int * linkID
Definition: bioworld.h:39
unsigned int * nbAtom
Definition: bioworld.h:36
boolean InitBioWorld(Tparameters *p, char *filename, unsigned int maxAtomsLink, double **conformation, TBioWorld *bw)
Initializes a world form a biomolecule.
Definition: bioworld.c:1394
TMolecule * m
Definition: bioworld.h:30