views2Matrix | R Documentation |
converts a RleViews or RleViewsList with views of the same width to a matrix, setting out-of-bounds regions to NA (or 'padVal').
views2Matrix(v, padVal = NA_integer_)
v |
A 'RleViews' or 'RleViewsList' object with views of the same width. |
padVal |
The value to assign to out-of-bound regions. |
A numeric matrix.
# we create an example RleViews with out-of-bound regions:
library(IRanges)
co <- Rle(values=c(0,1,0), lengths=c(100,50,20))
v <- Views(co, c(25,150),c(50,175))
# convert to matrix
views2Matrix(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.