Description Usage Arguments Value Examples
utility fn from Patrick Abouyoun's 2010 seminar
1 2 | plotCoverage(x, gr, col = "violet", xlab = "base", ylab = "reads",
main = "Coverage", stranded = FALSE, smoothen = 0, kf = "normal", ...)
|
x |
a galp |
gr |
a single GRanges range (i.e. seqname, start, end) |
col |
what color to plot it |
xlab |
x axis label for the plot |
ylab |
y axis label for the plot |
main |
main title for the plot |
stranded |
plot stranded? (FALSE) |
smoothen |
smooth the counts? (FALSE) |
kf |
kernel function for smoothing (normal) |
... |
arguments to pass along to coverage() |
invisibly return coverage and plot
1 2 3 4 5 6 7 8 9 10 11 | #visualizing a specific enhancer:
library(GenomicRanges)
library(Mus.musculus)
SMOenh <- GRanges('chr6', IRanges(29744702, 29751934), '+')
seqinfo(SMOenh) <- seqinfo(Mus.musculus)[seqlevels(SMOenh)]
plotCoverage(galp, SMOenh)
plotCoverage(galp, SMOenh, stranded=TRUE)
plotCoverage(get5primeCuts(galp), SMOenh, stranded=TRUE)
plotCoverage(get5primeCuts(galp, shrink=FALSE), SMOenh, stranded=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.