#File path for output files
wd <- tempdir()
#wd <- getwd()
file <- file.path(wd,"test_seq_pca")
#Importing multiple sequence alignment
msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
align <- import.msf(msf)
#Creating correlation object with OMES method
omes <- omes(align, gap_ratio= 0.2)
#Creating entropy object
entropy <- entropy(align, gap_ratio=0.2)
#Creating delta filter based on entropy
filter <- delta_filter(entropy, Smin = 0.2, Smax = 0.6)
#Selecting a correlation/covariation matrix
matrix_omes <-omes$score
#Creating PCA object for selected matrix and storing eigen values in csv file
pca <- centered_pca(matrix_omes, filepathroot= file, filter = filter)
Run the code above in your browser using DataLab