Learn R Programming

Bios2cor (version 1.2)

entropy_graph: Entropy graph

Description

The aim of this graph is the visualization of the entropy values of the elements in pairs with top and bottom entropy scores

Usage

entropy_graph(entropy, corr, filter= NULL, elite, high, csv, name)

Arguments

entropy

An object created by the entropy (sequence alignment) or the rotamer_entropy (trajectory) function.

corr

An object created by one of the correlation functions:

filter

A vector created by one of the weighting functions (gaussian, delta or sigmoid filter)

elite

An integer to determine the number of pairs with the highest and lowest scores (e.g. 25: pairs ranked 1 to 25 in decreasing or increasing order) to be colored with the "elite" color codes.

high

An integer to determine the number of pairs with the next highest and lowest scores (e.g. 275: pairs ranked 26 to 300 in decreasing or increasing order) to be colored with the "high" color codes.

csv

Logical value that indicates if information must be stored in a csv file

name

The full path name of the graph that will be created

Value

A graph showing the entropy values of the elements in pairs with top and bottom entropy scores

Details

Using the result of a correlation/covariation method and an entropy structure, creates a graph comparing correlation scores with entropy values. Each pair of elements (i,j) is placed in the graph with (entropy[i] ; entropy[j]) as coordinates. The color code of each point is based on its correlation score (blue/red color for elite values, light blue/pink for bottom values).

Examples

Run this code
# NOT RUN {
  msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
  align <- import.msf(msf)

  #Creating OMES object
  omes <- omes(align,fileHelix= NULL , diag= 0, fileCSV= NULL, gap_val= 0.8, z_score= TRUE)
  omes <- omes$normalized
  
  #Creating ENTROPY object
  entropy <- entropy(align)
    
  #creating entropy graph
  entropy_graph(entropy, omes, filter = NULL, elite = 25, high = 275, csv = TRUE, 
          name = "entropy_graph.pdf")
  
# }

Run the code above in your browser using DataLab