plot_entropy: Plot entropies for protein

Description Usage Arguments Details Value Author(s) Examples

Description

This function plots entropies of protein. Plots might be superimposed or not.

Usage

1
2
plot_entropy(protein_conservation, colors, impose = NULL,
             prot_name = NULL, legend_pos = NULL)

Arguments

protein_conservation

A list or a vectors of protein conservation/entropies. The output of get_prot_entropy function

colors

(optional) A vector of colors for each plot, default: rainbow

impose

(optional) A boolean, if True/T plots are superimposed, if False/F plots are printed separately, default: T

prot_name

(optional) A string with structure name (to be used in the tile of the plot), default: none

legend_pos

(optional) A string witch legend position - one of following: "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" and "center". Default: "bottomleft"

Details

This function produces plots for given values, on X axis are amino acids, on Y axis are values of entropy/conservation. Legend contains score names for description values.

Value

This function produces plots

Author(s)

Alicja Pluciennik & Michal Stolarczyk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data("alignment")
data("structure")
uniprot="P34914"
structure_index=get_structures_idx(structure)
entropy_scores_list=list(Schneider_entropy = schneider_conservativity(alignment),
                        Escore_entropy = Escore_conservativity(alignment))
prot_entropy=get_prot_entropy(structure_index$proteinIndices, entropy_scores_list)

plot_entropy(prot_entropy, colors = c("red","green","blue"),
            impose = TRUE, prot_name = "Murine Epoxide Hydrolase",
            legend_pos = "bottomright")

BALCONY documentation built on May 1, 2019, 10:31 p.m.