Commit 919a4b24 by Chloe Dequeker

Bugfix for PDB output, ID res had a wrong format

parent ca558694
...@@ -272,11 +272,19 @@ void write_candidate(struct residue** t_candid, int sizeCand, FILE* output_strea ...@@ -272,11 +272,19 @@ void write_candidate(struct residue** t_candid, int sizeCand, FILE* output_strea
/* Output the residues selected as being part of the interface in the array /* Output the residues selected as being part of the interface in the array
* t_candid * t_candid
*/ */
int i = 0; int i = 0, j = 0, len = 0;
char buf[15];
for(i=0;i<sizeCand;i++){ for(i=0;i<sizeCand;i++){
if(t_candid[i]->isCandidate){ if(t_candid[i]->isCandidate){
fprintf(output_stream,"'%s' '%c' ",strtok(t_candid[i]->idRes," "),t_candid[i]->chain); len = strlen(t_candid[i]->idRes);
for(j=0;j<len;j++){
if(t_candid[i]->idRes[j] != ' '){
buf[j] = t_candid[i]->idRes[j];
}
}
buf[len] = '\0';
fprintf(output_stream,"'%s' '%c' ",buf,t_candid[i]->chain);
fflush(output_stream); fflush(output_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