NULL values for: XYZ cartesian coordinates,
Issue #743
new
Hi Bio3D, I am reading about 140 structures. Which is the best way to read them in because I already have them aligned through PyMOL. Is it more accurate if I aligned them again using Bio3D? Also, whenever I read the pdbs in, I am having trouble gathering the xyz coordinate matrix because they all say it is NULL, same with resno and so forth. However, when I do read 1/140 individually, they have no problem showing the xyz coordinates or residue. I think I am reading them in incorrectly, please feel free to reach out!
Daniel
Hi,
The best way to deal with multiple structures in Bio3D is to create a ‘pdbs’ object. There are multiple ways to do it:
If you already have an alignment, try following lines
One thing you need to assure is that the “id” of each sequence must be the path of the corresponding PDB file, and so
read.fasta.pdb()
can find the structure and read it.
If you want Bio3D to re-align it, simply use the
pdbaln()
function:
Hope it helps.