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 )
entropy |
An object created by the |
filepathroot |
The root of the full path name for the entropy output file. If NULL, a "ENTROPY.csv" file is created in tempdir(). If not NULL, a "_ENTROPY.csv" extension is added to filepathroot. |
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
out <- tempdir()
file <- file.path(out,"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.