Description Usage Arguments Value Author(s) See Also Examples
Plots average profile of motif occurrence for a set of input sequences of the same length. Motif is specified by a position weight matrix (PWM) that contains estimated probability of base b at position i, and only motif hits above specified threshold are taken into account.
1 2 3 4 5 | plotMotifOccurrenceAverage(regionsSeq, motifPWM, minScore = "80%", flankUp =
NULL, flankDown = NULL, smoothingWindow = 1, color = "black", xLabel =
"Distance to reference point (bp)", yLabel = "Relative frequency", cexAxis =
1, addReferenceLine = TRUE, plotLegend = FALSE, cexLegend = 1, add = FALSE,
...)
|
regionsSeq |
A |
motifPWM |
A numeric matrix representing the Position Weight Matrix (PWM), such as
returned by |
minScore |
The minimum score for counting a motif hit. Can be given as a character
string containing a percentage (e.g. |
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 |
Value specifying the color for plotting. |
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 |
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 motif above the specified score threshold in the set of input sequences and plots an average profile reflecting the occurrence of the motif across input sequences.
Vanja Haberle
motifScanHits
plotMotifDensityMap
1 2 3 4 5 6 | load(system.file("data", "zebrafishPromoters.RData", package="seqPattern"))
load(system.file("data", "TBPpwm.RData", package="seqPattern"))
plotMotifOccurrenceAverage(regionsSeq = zebrafishPromoters, motifPWM = TBPpwm,
minScore = "85%", flankUp = 400, flankDown = 600,
smoothingWindow = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.