##Example with MSA
#File path for output file
wd <- tempdir()
#wd <-getwd()
file <- file.path(wd,"test_seq7")
#Importing MSA file
msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
align <- import.msf(msf)
#Creating OMES correlation object and selecting a correlation matrix
correlation <- omes(align, gap_ratio = 0.2)
corr_matrix <- correlation$Zscore
#Creating entropy object
entropy <- entropy(align)
#Creating a delta filter based on entropy
filter <- delta_filter(entropy, Smin = 0.4, Smax = 0.7)
#Creating the entropy graph
scores_entropy.plot(entropy, corr_matrix, filepathroot = file, filter=filter)
##Example with MD
# #File path for output file
# wd <- tempdir()
# #wd <-getwd()
# file <- file.path(wd,"test_dyn7")
# #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 = 1)
# dynamic_structure <- dynamic_structure(pdb, trj, wanted_frames)
#
# #Creating rotamers object using conversion_file
# conversion_file <- system.file("rotamer/dynameomics_rotamers.csv", package= "Bios2cor")
# rotamers <- angle2rotamer(dynamic_structure, conversion_file)
#
# #Creating the dynamic_entropy and filter objects
# entropy <- dynamic_entropy(rotamers)
# filter <- delta_filter(entropy, Smin = 0.0, Smax = 0.1)
# #Creating correlation object
# #dyn_cor <- dynamic_circular(dynamic_structure)
# dyn_cor <- dynamic_omes(dynamic_structure,rotamers)
# #selection correlation matrix
# corr_matrix <- dyn_cor$Zscore_noauto
#
# #Creating the entropy graph
# scores_entropy.plot(entropy, corr_matrix, filepathroot = file, filter=filter)
Run the code above in your browser using DataLab