# NOT RUN {
#Example for MSA
#File path for output files
wd <- tempdir()
#wd <-getwd()
file <- file.path(wd,"test_seq")
#Importing MSA file
msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
align <- import.msf(msf)
#Creating correlation and entropy objects
correlation <- omes(align, gap_ratio= 0.2)
entropy <- entropy(align)
#Writing results to csv file
write.scores(correlation, entropy, file)
###Example for MD
#File path for output files
wd <- tempdir()
#wd <-getwd()
file <- file.path(wd,"test_dyn")
#Reading the pdb and dcd files and the angles to rotamers conversion file
pdb <- system.file("rotamer/toy_coordinates.pdb", package= "Bios2cor")
trj <- system.file("rotamer/toy_dynamics.dcd", package= "Bios2cor")
conversion_file <- system.file("rotamer/dynameomics_rotamers.csv", package= "Bios2cor")
#Creating dynamic_structure and rotamers objects
wanted_frames <- seq(from = 5, to = 40, by = 10)
dynamic_structure <- dynamic_structure(pdb, trj, wanted_frames)
rotamers <- angle2rotamer(dynamic_structure, conversion_file)
#Creating correlation and entropy objects
wanted_residues <- c("F","H","N","Y","W")
#dyn_corr <- dynamic_omes(dynamic_structure, rotamers, wanted_residues)
dyn_corr <- dynamic_circular(dynamic_structure, wanted_residues)
dyn_entropy <- dynamic_entropy(rotamers)
#Writing results to csv file
write.scores(dyn_corr, dyn_entropy, file)
# }
Run the code above in your browser using DataLab