dagLogo: Create sequence logo.

Description Usage Arguments Value Author(s) Examples

View source: R/dagLogo.R

Description

Create sequence logo for visualizing results of testing differential usage of amino acids.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
(
  testDAUresults,
  type = c("diff", "zscore"),
  pvalueCutoff = 0.05,
  groupingSymbol = getGroupingSymbol(testDAUresults@group),
  font = "sans",
  fontface = "bold",
  fontsize = 5,
  title = NULL,
  legend = FALSE,
  labelRelativeToAnchor = FALSE,
  labels = NULL,
  alpha = 1
)

Arguments

testDAUresults

An object of testDAUresults-class, which cintains results of testing differential amino acid usage).

type

A character vector of length 1. Type of statistics to be displayed on y-axis. Available choices are "diff" or "zscore".

pvalueCutoff

A numeric vector of length 1. A cutoff of p-values.

groupingSymbol

A named character vector.

font

A character vector of length 1. Font type for displaying sequence Logo.

fontface

An integer, fontface of text for axis annotation and legends.

fontsize

An integer, fontsize of text for axis annotation and legends.

title

A character vector of length 1, main title for a plot.

legend

A logical vector of length 1, indicating whether to show the legend.

labelRelativeToAnchor

A logical vector of length 1, indicating whether x-axis label should be adjusted relative to the anchoring position.

labels

A character vector, x-axis labels.

alpha

Alpha channel for transparency of low affinity letters.

Value

A sequence Logo is plotted without returned values.

Author(s)

Jianhong Ou, Haibo Liu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data('seq.example') 
data('proteome.example')
bg <- buildBackgroundModel(seq.example, proteome=proteome.example, 
                           numSubsamples=10, testType = "ztest")
t0 <- testDAU(seq.example, bg)
t1 <- testDAU(dagPeptides = seq.example, dagBackground = bg, 
              groupingScheme = "hydrophobicity_KD")
t2 <- testDAU(dagPeptides = seq.example, dagBackground = bg, 
             groupingScheme = "charge_group")
t3 <- testDAU(dagPeptides = seq.example, dagBackground = bg, 
             groupingScheme = "chemistry_property_Mahler")
t4 <- testDAU(dagPeptides = seq.example, dagBackground = bg, 
              groupingScheme = "hydrophobicity_KD_group")
(t0)
(t1, groupingSymbol = getGroupingSymbol(t1@group))
(t2, groupingSymbol = getGroupingSymbol(t2@group))
(t3, groupingSymbol = getGroupingSymbol(t3@group))
(t4, groupingSymbol = getGroupingSymbol(t4@group))

haibol2016/dagLogo documentation built on June 28, 2020, 1:31 a.m.