/* This program calculates for each residu the difference of G when the protein is at the membran and when it is translocated in the solvant. This program works with the charmm output file. To use it you will have to extract the data given by the eef1 print command and then take the residu number and the G value in a separate file wich will be analazed here. */ #include #include #include #include int main(int argc, char **argv){ if(argc!=2){ printf("Usage: ./e1.o filename\n"); exit(1); } char *filename=argv[1]; int nbres=19; /* number of residu */ int nbstep=6000; /* number of step x 2 */ int nbatom=139; /* number of atoms per step wich contibutes in the terms of the binding energy */ float G[nbstep][nbres]; float GmeanAtMembran[nbres]; float GmeanInWater[nbres]; int resNumber=0; float val=0.0; int i,j; int step=0; int ind=0; for(i=0;i