Hello,
I have come to realize, pymol for some reason cares a lot about white spaces. Modifying the elements of a single "ATOM" line and changing it's white space completely breaks Pymols ability to read it.
E.G. Pymol has no issue reading this
ATOM 6219 OXT LEU B 380.0 53.326 48.908 20.774 1.00 66.40 O
But cannot read this
ATOM 6219 OXT LEU B 380.0 53.326 48.908 20.774 1.00 66.40 O
The bottom line is TSV, the top line has, from what I can tell, a bunch of random white spaces. Is there any tool or way to convert the white spaces from TSV to whatever format Pymol likes?
Looking at a PDB file I see the following non-printing characters. They are not random but pad up columns so they are always aligned.
Further down in the file we see
So you will need to make sure that tabs you replace with whitespace pads up to the same number of characters in a line and the columns stay aligned.
Edit: I just tested a modified file and it worked in PyMOL. BTW there are no tabs in PDB file I got from PDB in ATOM section.
Check the non-printing characters in your file (something like
cat -vet
should work) and then replace them with tabs. There may be a PDB format validation program out there that you could use as well.I'm not trying to replace the white spaces with tabs. I'm trying to convert the tabs into the white spaces Pymol likes. The issue is, from what I can tell, the white spaces are random and different for each element in the line. I'm sure there is some pattern the program likes, but I don't know what that pattern is. I'm hoping someone either has the tool that will convert TSV into whatever pattern the program likes, or can tell me so I can quickly convert it myself. Or maybe there is an option in pymol that enables you to read TSV pdbs