Description Usage Arguments Value Examples
Takes as input a vector of character sequences (aligned to have the ) same length or a positional frequency or weight matrix and plots the standard logo or the Enrichment Depletion (ED) Logo plots.
1 2 3 4 |
data |
The input data may be a vector of character sequences - representing aligned sequences of DNA, RNA or amino acids, or a matrix/ data frame with symbols of characters or strings of characters along the rows of the matrix/data frame and the positions or sites of the aligned sequences along the columns. |
type |
can either be "Logo" or "EDLogo" depending on if user wants to plot the standard Logo or the Enrichment Depletion Logo. |
bg |
The background probability, which defaults to NULL, in which case equal probability is assigned to each symbol. The user can however specify a vector (equal to in length to the number of symbols) which specifies the background probability for each symbol and assumes this background probability to be the same across the columns (sites), or a matrix, whose each cell specifies the background probability of the symbols for each position. |
n_data |
The number of sequences used to build the positional weight matrix (table). |
n_bg |
The number of sequences used for the background probabilities. |
tol |
The tolerance for the KL-divergence of the positional weight data and background probabilities. |
shrink |
A Boolean indicating whether to use the |
pseudocount |
A small pseudocount to be added mainly to bypass 0 entries.
Default is NULL. If |
color_type |
A list specifying the coloring scheme. Defaults to NULL,
for which, based on |
colors |
Add description here. |
color_seed |
A seed for choosing among multiple available coloring
schemes in |
return_heights |
Boolean. If TRUE, the function returns the stack heights for the logo plot.For standard Logo (type = "Logo"), it returns the information content. For tyep = "EDLogo", it returns the total stack height along positive and negative axis, as well as the breakdown of the heights along different symbols along the two axis. Defaults to FALSE. |
logo_control |
Control parameters for the logo plot. Check the
input arguments from the |
Returns a standard or EDLogo plot of the sequence of the positional
frequency matrix based on the type
is equal to Logo or EDLogo.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | sequence <- c("CTATTGT", "CTCTTAT", "CTATTAA", "CTATTTA", "CTATTAT",
"CTTGAAT", "CTTAGAT", "CTATTAA", "CTATTTA", "CTATTAT",
"CTTTTAT", "CTATAGT", "CTATTTT", "CTTATAT", "CTATATT",
"CTCATTT", "CTTATTT", "CAATAGT", "CATTTGA", "CTCTTAT",
"CTATTAT", "CTTTTAT", "CTATAAT", "CTTAGGT",
"CTATTGT", "CTCATGT", "CTATAGT", "CTCGTTA",
"CTAGAAT", "CAATGGT")
logomaker(sequence, type = "Logo")
logomaker (sequence, type = "EDLogo")
library(ggseqlogo)
data(ggseqlogo_sample)
sequence <- seqs_aa$AKT1
logomaker (sequence, type = "Logo")
logomaker (sequence, type = "EDLogo")
data("seqlogo_example")
logomaker(seqlogo_example, type = "Logo", return_heights = TRUE)
logomaker(seqlogo_example, type = "EDLogo", return_heights = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.