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, ...)
DNAStringSet
object. Set of sequences of the same length
for which the patterns occurrence profile should be visualised.
PWM
function. Can contain either probabilities
or log2 probability ratio of base b at position i.
"85%"
) of the
PWM score or a single number specifying score threshold. If a percentage
is given, it is converted to a score value taking into account both
minimal and maximal possible PWM scores as follows:
minPWMscore + percThreshold/100 * (maxPWMscore - minPWMscore)
This differs from the formula in the matchPWM
function
from the Biostrings
package which takes into account only the
maximal possible PWM score and considers the given percentage as the
percentage of that maximal score:
percThreshold/100 * maxPWMscore
flankUp + flankDown
must sum up to the length of the sequences.
If no values are provided both flankUp
and flankDown
are
set to be half of the length of the input sequences, i.e. the
reference position is assumed to be in the middle of the sequences.
cex
.
cex
.
plot()
or lines()
methods, such as lty
, etc.
motifScanHits
plotMotifDensityMap
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)
Run the code above in your browser using DataLab