## Not run:
# ## Read a PRMTOP file
# prmtop <- read.prmtop("prot_solvated.prmtop")
# print(prmtop)
#
# ## Explore parameters
# prmtop$MASS
# prmtop$ATOM_NAME
#
# ## Atom selection
# ca.inds <- atom.select(prmtop, "calpha")
#
# ## Trajectory processing
# trj <- read.ncdf("traj.nc", at.sel=ca.inds)
#
# ## Read a Amber CRD file
# crds <- read.crd("prot_solvated.inpcrd")
#
# ## Convert to PDB format
# pdb <- as.pdb(prmtop, crds, inds=ca.inds)
#
# ## Convert to multimodel PDB format
# pdb <- as.pdb(prmtop, trj[1:20,], inds=ca.inds, inds.crd=NULL)
#
# ## RMSD of trajectory
# rd <- rmsd(crds$xyz[ca.inds$xyz], traj, fit=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab