Skip to content

Commit

Permalink
Fix wrong PDB output for large structures in convert2pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 11, 2024
1 parent a2f62ee commit b6dac8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strucclustutils/convert2pdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ int convert2pdb(int argc, const char **argv, const Command& command) {
aa = 'X';
}
const char* aa3 = threeLetterLookup[(int)(aa - 'A')];
fprintf(threadHandle, "ATOM % 5d CA %s %c% 4d% 12.3f% 8.3f% 8.3f\n", (int)(j + 1), aa3, chainName[0], int(j + 1), ca[j], ca[j + (1 * seqLen)], ca[j + (2 * seqLen)]);
fprintf(threadHandle, "ATOM %5d CA %s %c%4d %8.3f%8.3f%8.3f\n", (int)(j + 1), aa3, chainName[0], int(j + 1), ca[j], ca[j + (1 * seqLen)], ca[j + (2 * seqLen)]);
}
if (outputMode == LocalParameters::PDB_OUTPUT_MODE_MULTIMODEL) {
fprintf(threadHandle, "ENDMDL\n");
Expand Down

0 comments on commit b6dac8a

Please sign in to comment.