#Reading pdb and dcd files
pdb <- system.file("rotamer/toy_coordinates.pdb", package= "Bios2cor")
trj <- system.file("rotamer/toy_dynamics.dcd", package= "Bios2cor")
#Creating dynamic_structure object for selected frames
wanted_frames <- seq(from = 1, to = 40, by = 2)
dynamic_structure <- dynamic_structure(pdb, trj, wanted_frames)
#Computing circular correlation between dihedral angles of selected residues
res_selection <- c("H","N","Q","F","Y","W")
dihed_corr <- dynamic_circular(dynamic_structure, res_selection)
#Computing correlation between all dihedral angles
#dihed_corr <- dynamic_circular(dynamic_structure)
Run the code above in your browser using DataLab