Description Usage Arguments Value Author(s) Examples
View source: R/viRome_functions.R View source: R/pwm.heatmap.R
Draw a heatmap of a position-weight matrix (from make.pwm
. Uses the image
function
1 | pwm.heatmap(pwm = NULL, col.fun = colorRampPalette(c("black", "red"), space = "rgb"), mar = c(3, 2, 1, 1), cex.axis = 0.8)
|
pwm |
Output from |
col.fun |
A colour function such as |
mar |
The margins for the plot. See |
cex.axis |
A scaling factor for the axes labels |
An image is plotted to the current device
Mick Watson <mick.watson@roslin.ed.ac.uk>
1 2 3 4 5 6 | ## Not run: infile <- system.file("examples/SRR389184_vs_SINV_sorted.bam", package="viRome")
## Not run: bam <- read.bam(bamfile=infile, chr="SINV", minlen=1, maxlen=11703, removeN=TRUE)
## Not run: bamc <- clip.bam(bam)
## Not run: pwm1 <- make.pwm(bamc, minlen=25, maxlen=29, strand="neg")
## Not run: pwm.heatmap(pwm1)
## Not run: pwm.heatmap(pwm1, col.fun=colorRampPalette(c("green","red"), space="rgb"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.