Commit dd294e42 by Chloe Dequeker

modif : number of conf was 1 too much

parent e012c524
......@@ -267,6 +267,8 @@ int main(int argc, char** argv){
dbeta = dock_res->beta[target_conf] - beta;
dgamma = dock_res->gamma[target_conf] - gamma;
printf("dist : %f\n",dock_res->distCenters[target_conf]);
newPDB = rotate_sophie(pdbL,pdbR,NULL,dock_res->distCenters[target_conf],
dock_res->theta[target_conf],dock_res->phi[target_conf],
dalpha,dbeta,dgamma,dock_res,target_conf);
......@@ -286,7 +288,7 @@ int main(int argc, char** argv){
freePDB(newPDB);
newPDB = NULL;
}else{ /* For all conformations */
for(i=1;i<dock_res->nbConf;i++){
for(i=1;i<=dock_res->nbConf;i++){
if(dock_res->t_conf[i] == 0){
/* No conformation was found for this index */
......
......@@ -28,7 +28,7 @@ struct docking_results* getDataForComplex(){
if(buf3 > numberOfConf)
numberOfConf = (int) buf3;
}
numberOfConf++;
//numberOfConf++;
rewind(condFile_stream);
/* This is with the first MAXDo format */
......@@ -40,6 +40,7 @@ struct docking_results* getDataForComplex(){
* allocate a structure large enough
*/
dock_res = allocate_dockingResults(numberOfConf);
printf("nConf : %d\n",numberOfConf);
while(!feof(condFile_stream)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment