View source: R/write.entropy.R
write.entropy | R Documentation |
Given an entropy/dynamic_entropy object, writes each element (position or dihedral angle) and its entropy/dynamic_entropy value in a csv file, and displays the histogram.
write.entropy(entropy, filepathroot = NULL)
entropy |
An object created by the |
filepathroot |
The root of the full path name for the entropy output file. Default is NULL (a "ENTROPY.csv" file is created). If filepathroot is not NULL, a "_ENTROPY.csv" extension is added to the file path root. |
The entropy
function calculates entropy score for each position of an alignment file. The dynamic_entropy
function calculate a "dynamic entropy" score for each side chain dihedral angle of a protein during a molecular simulations.
A csv file containing the elements and their scores. A png file displaying the histogram of the scores.
Antoine GARNIER
#File path for output files wd <- tempdir() #wd <-getwd() file <- file.path(wd,"test_seq") #Importing multiple sequence alignment align <- import.msf(system.file("msa/human_gpcr.msf", package = "Bios2cor")) #Creating entropy object entropy <- entropy(align, gap_ratio = 0.2) #Writing results to csv file write.entropy(entropy, file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.