Closed edarl closed 3 years ago
Thanks @edarl ! Can you see if running pdb_tidy
before running pdb_reatom
work? e.g. pdb_tidy your.pdb | pdb_reatom > your-out.pdb
The tidy script should fix your TER
statements automatically. The issue you have is because some programs trim lines in PDB files when they should be always padded to 80 characters. So, even an empty TER statement (not perfect, but it's OK!) should have 77 empty spaces afterwards.
Tidying fixed it! Thanks!
I now know I can't trust the PDBs output by any software.
Rule number 1 indeed: never trust PDBs, not even from the PDB itself ;)
Glad it worked!
Describe the bug I'm using
pdb_reatom
and in PDBs which don't have anything on TER lines except the TER statement. The reatoming prints the atom number on the line below the TER line.I just read the PDB guidelines on what the TER line should look like and I now know that it's supposed to have the res name and info preceding it in the line. But I'm also using software to modify the PDBs and after checking the PDBs produced by two of them (PYMOL and RING2.0), both are producing PDBs with TER and nothing else in TER lines.
I changed the script to be below and it fixed the problem for me.
Now I know the empty TER lines aren't proper PDB format I don't know if you want to change your script or not but thought I'd report the behaviour anyway.
Desktop (please complete the following information):