Description Usage Arguments Value Author(s) References See Also Examples
Plots density of motif occurrences in an ordered set of sequences of the same length in the form of a two dimensional map centered at a common reference position. 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 and plotted.
1 2 3 4 5 6 7 | plotMotifDensityMap(regionsSeq, motifPWM, minScore = "80%",
seqOrder = c(1:length(regionsSeq)), flankUp = NULL, flankDown = NULL,
nBin = NULL, bandWidth = NULL, color = "blue", transf = NULL, xTicks = NULL,
xTicksAt = NULL, xLabel = "", yTicks = NULL, yTicksAt = NULL, yLabel = "",
cexAxis = 8, plotScale = TRUE, scaleLength = NULL, scaleWidth = 15,
addReferenceLine = TRUE, plotColorLegend = TRUE, outFile = "DensityMap",
plotWidth = 2000, plotHeight = 2000)
|
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. |
seqOrder |
Integer vector specifying the order of the provided input sequences.
Must have the same length as the number of sequences in the
|
flankUp, flankDown |
The number of base-pairs upstream and downstream of the reference
position in the provided sequences, respectively.
|
nBin |
Numeric vector with two values containing the number of equally spaced
points in each direction over which the density is to be estimated. The
first value specifies number of bins along x-axis, i.e. along the
nucleotides in the sequence, and the second value specifies the number
of bins along y-axis, i.e. across ordered input sequences. The
values are passed on to the |
bandWidth |
Numeric vector of length 2, containing the bandwidth to be used in each
coordinate direction. The first value specifies the bandwidth along the
x-axis, i.e. along the nucleotides in the sequence, and the
second value specifies the bandwidth along y-axis, i.e. across
ordered input sequences. The values are passed on to the
|
color |
Character specifying the color palette for the density plot. One of the
following color palettes can be specified: |
transf |
The function mapping the density scale to the color scale. See Details. |
xTicks |
Character vector of labels to be placed at the tick-marks on x-axis.
The default |
xTicksAt |
Numeric vector of positions of the tick-marks on the x-axis. The values
can range from 1 (the position of the first base-pair in the sequence)
to input sequence length. The default |
xLabel |
The label for the x-axis. The default is no label, i.e. empty string. |
yTicks |
Character vector of labels to be placed at the tick-marks on y-axis.
The default |
yTicksAt |
Numeric vector of positions of the tick-marks on the y-axis. The values
can range from 1 (the position of the last sequence on the bottom of the
plot) to input sequence length (the position of the first sequence on
the top of the plot). The default |
yLabel |
The label for the y-axis. The default is no label, i.e. empty string. |
cexAxis |
The magnification to be used for axis annotation. |
plotScale |
Logical, should the scale bar be plotted in the lower left corner of the plot. |
scaleLength |
The length of the scale bar to be plotted. Used only when
|
scaleWidth |
The width of the line for the scale bar. Used only when
|
addReferenceLine |
Logical, should the vertical dashed line be drawn at the reference point. |
plotColorLegend |
Logical, should the color legend for the pattern density be plotted. If
|
outFile |
Character vector specifying the base name of the output plot file. The
final name of the plot file for each pattern will be
|
plotWidth, plotHeight |
Width and height of the density plot in pixels. |
The function produces a PNG file in the working directory, visualising density of the motif occurrence above specified threshold in the set of ordered input sequences.
Vanja Haberle
Haberle et al. (2014) Two independent transcription initiation codes overlap on vertebrate core promoters, Nature 507:381-385.
motifScanHits
plotPatternDensityMap
1 2 3 4 5 6 7 8 9 | library(GenomicRanges)
load(system.file("data", "zebrafishPromoters.RData", package="seqPattern"))
promoterWidth <- elementMetadata(zebrafishPromoters)$interquantileWidth
load(system.file("data", "TBPpwm.RData", package="seqPattern"))
plotMotifDensityMap(regionsSeq = zebrafishPromoters, motifPWM = TBPpwm,
minScore = "85%", seqOrder = order(promoterWidth),
flankUp = 400, flankDown = 600, color = "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.