Description Usage Arguments Value Author(s) Examples
View source: R/viRome_functions.R View source: R/size.position.heatmap.R
A heatmap will be drawn, the rows being read lengths, the columns being position in the genome, and the colours related to counts of read lengths mapping to those locations
1 |
dm |
The output of |
minlen |
The minimum length of aligned read to consider |
maxlen |
The maximum length of aligned read to consider |
start |
The minimum start position to consider |
end |
The maximum start position to consider |
scale |
Whether to scale the data for each genome position |
col.fun |
A function that will provide colours; could be |
log |
Whether to log() the data first (prior to scaling) |
mar |
The margins for the plot. See |
main |
A title for the plot |
A heatmap is drawn on the current graphical device
Mick Watson <mick.watson@roslin.ed.ac.uk>
1 2 3 4 5 6 7 8 9 | ## Not run: infile <- system.file("data/SRR389184_vs_SINV_sorted.bam", package="viRome")
## Not run: bam <- read.bam(bamfile=infile, chr="SINV", start=1, end=11703, removeN=TRUE)
## Not run: bamc <- clip.bam(bam)
## Not run: dm <- summarise.by.length(bamc)
## Not run: dmp <- summarise.by.length(bamc, strand="pos")
## Not run: dmn <- summarise.by.length(bamc, strand="neg")
## Not run: size.position.heatmap(dm)
## Not run: size.position.heatmap(dm, log=TRUE, scale=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.