#Reading pdb and dcd files
pdb <- system.file("rotamer/toy_coordinates.pdb", package= "Bios2cor")
trj <- system.file("rotamer/toy_dynamics.dcd", package= "Bios2cor")
#Reading conversion file
#conversion_file <- system.file("rotamer/dynameomics_rotamers.csv", package= "Bios2cor")
#Creating dynamic_structure object
wanted_frames <- seq(from = 1, to = 40, by = 2)
dynamic_structure <- dynamic_structure(pdb, trj, wanted_frames)
#Creating rotamers object with default conversion_file
rotamers <- angle2rotamer(dynamic_structure)
#Creating rotamers object with conversion_file
#rotamers <- angle2rotamer(dynamic_structure, conversion_file)
Run the code above in your browser using DataLab