Using the R package bio3d
I would like to draw bonds between two atoms on a protein and parse the structure to PyMOL using the pymol()
.
library(bio3d)
# Import PDB file
pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") )
# Atom 1
sele.1 <- atom.select(pdb, "calpha", resno=43, verbose=TRUE)
# Atom 2
sele.2 <- atom.select(pdb, "calpha", resno=54, verbose=TRUE)
In this example I would like to draw a bond/tangent/line between atoms sele.1
and sele.2
- a fairly trivial problem, is this possible?