
Last chance! 50% off unlimited learning
Sale ends in
Rx(...)
Ry(...)
Rz(...)
"Rx"(x, angle = 0, mask = TRUE, cryst1 = NULL, ...)
"Ry"(x, angle = 0, mask = TRUE, cryst1 = NULL, ...)
"Rz"(x, angle = 0, mask = TRUE, cryst1 = NULL, ...)
"Rx"(x, angle = 0, mask = TRUE, cryst1 = x$cryst1, ...)
"Ry"(x, angle = 0, mask = TRUE, cryst1 = x$cryst1, ...)
"Rz"(x, angle = 0, mask = TRUE, cryst1 = x$cryst1, ...)
x
with rotated coordinates.R
function.
R
and xyz2abc
, abc2xyz
for passing from Cartesian to fractional coordinates (or Vis Versa).
# First lets read a pdb file
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
cell <- cell.coords(x)
visualize(x, mode = NULL)
# Rotation of the structure around the z-axis
visualize(Rz(x, 90), mode = NULL)
# Rotation of the residue 1 around the c-axis
visualize(Rz(x, 90, mask=x$atoms$resid==1), mode = NULL)
Run the code above in your browser using DataLab