Description Usage Arguments Value Author(s) See Also Examples
Plots average profile of sequence pattern occurrence for a set of input sequences of the same length. Multiple sequence patterns can be processed at once and visualised in the same plot, allowing comparison across different patterns.
1 2 3 4 5 | plotPatternOccurrenceAverage(regionsSeq, patterns, flankUp = NULL,
flankDown = NULL, smoothingWindow = 1, color = rainbow(length(patterns)),
xLabel = "Distance to reference point (bp)", yLabel = "Relative frequency",
cexAxis = 1, addReferenceLine = TRUE, plotLegend = TRUE, cexLegend = 1,
useMulticore = FALSE, nrCores = NULL, add = FALSE, ...)
|
regionsSeq |
A |
patterns |
Character vector specifying one or more DNA sequence patterns (oligonucleotides). IUPAC ambiguity codes can be used and will match any letter in the subject that is associated with the code. |
flankUp, flankDown |
The number of base-pairs upstream and downstream of the reference
position in the provided sequences, respectively.
|
smoothingWindow |
Integer specifying the size of a window (in base-pairs) to be used for smoothing the signal. Default value of 1 corresponds to no smoothing. |
color |
A vector of values specifying the colors for plotting. Number of colors must match the number of patterns that should be plotted. |
xLabel, yLabel |
Character strings for x and y axis labels, respectively. |
cexAxis |
The magnification to be used for axis annotation relative to the current
setting of |
addReferenceLine |
Logical, should the vertical dashed line be drawn at the reference point. |
plotLegend |
Logical, should the legend be plotted at the top. |
cexLegend |
The magnification to be used for legend relative to the current setting
of |
useMulticore |
Logical, should multicore be used. |
nrCores |
Number of cores to use when |
add |
Logical, should the pattern occurrence profiles be added to the existing plot. |
... |
Further arguments to be passed to |
The function finds all hits matching the specified patterns in the set of input sequences and plots one average profile per pattern reflecting the occurrence of patterns across sequences.
Vanja Haberle
getPatternOccurrenceList
plotPatternDensityMap
1 2 3 4 5 6 7 8 9 10 11 | load(system.file("data", "zebrafishPromoters.RData", package="seqPattern"))
# dinucleotide patterns
plotPatternOccurrenceAverage(regionsSeq = zebrafishPromoters, patterns = c("AT",
"TA", "CG", "GC"), flankUp = 400, flankDown = 600, smoothingWindow =
3, color = c("gold", "darkred", "forestgreen", "navy"))
# motif consensus sequence
plotPatternOccurrenceAverage(regionsSeq = zebrafishPromoters, patterns =
"TATAWAWR", flankUp = 400, flankDown = 600, smoothingWindow = 3,
color = "gray")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.