Torsion angle calculations for multi-model PDB file
Issue #872
new
I want to calculate all torsion angles for a multi-model PDB file. When I ran torsion.pdb, I am able to see the angles only for one model. How to get angles for all the models?
Comments (5)
-
-
Thanks for this! I ran the script but in the output, I only see phi, psi and chi1 even for longer side chain residues. How do I get chi2,chi3, etc. ?
-
You can use the
tbl
argument to set the angles (e.g., “chi1” up to “chi5”). See xyz2torsion.Rd for more detail. -
Thanks a lot for pointing this out. Is there some way to output omega angle as well? Even when I mention ‘all’, it does not calculate omega angle.
-
No, it doesn’t output omega. One solution may be to split the multi-model file into multiple PDB files and then repeatedly use
torsion.pdb()
to get omega.
- Log in to comment
Hi,
As far as I know,
torsion.pdb()
only takes the first model. A solution is to use thexyz2torsion.R
(and the associated documentation, xyz2torsion.Rd) under new_funs/ here. The function hasn’t been integrated into the bio3d package. So, to use it, you need tosource()
first.
Let me know if you get any problems.