plotMotifScanScores(regionsSeq, motifPWM, seqOrder = c(1:length(regionsSeq)), flankUp = NULL, flankDown = NULL, xTicks = NULL, xTicksAt = NULL, xLabel = "", yTicks = NULL, yTicksAt = NULL, yLabel = "", cexAxis = 8, plotScale = TRUE, scaleLength = NULL, scaleWidth = 15, addReferenceLine = TRUE, plotColorLegend = TRUE, outFile = "MotifScanningScores.png", plotWidth = 2000, plotHeight = 2000)
DNAStringSet
object. Set of sequences of the same length
for which the motif occurrence density should be visualised.
PWM
function. Can contain either probabilities
or log2 probability ratio of base b at position i.
regionSeq
. Input sequences will be sorted according to this index
in an ascending order form top to the bottom of the plot, i.e.
the sequence labeled with the lowest number will appear at the top of
the plot. The default value will order the sequences as they are ordered
in the input regionSeq
object.
flankUp + flankDown
must sum up to the length of the sequences.
NULL
value produces five tick-marks: one at the
reference point and two equally spaced tick-marks both upstream and
downstream of the reference point.
NULL
value produces five
tick-marks: one at the reference point and two equally spaced tick-marks
both upstream and downstream of the reference point.
NULL
value produces no tick-marks and labels.
NULL
value produces no
tick-marks.
plotScale = TRUE
. If no value is provided, it defaults to one
fifth of the input sequence length.
plotScale = TRUE
.
outFile
."pattern.jpg".
motifScanScores
plotPatternDensityMap
library(GenomicRanges)
load(system.file("data", "zebrafishPromoters.RData", package="seqPattern"))
promoterWidth <- elementMetadata(zebrafishPromoters)$interquantileWidth
load(system.file("data", "TBPpwm.RData", package="seqPattern"))
plotMotifScanScores(regionsSeq=zebrafishPromoters, motifPWM = TBPpwm,
seqOrder=order(promoterWidth), flankUp = 400, flankDown = 600)
Run the code above in your browser using DataLab