getCoverage | R Documentation |
getCoverage
calculates coverage of regions (rows in interaction
matrix) by features (columns). It is possible to specify features grouping
variable gr
then coverage tells how many distinct groups the region
overlap with.
getCoverage(mat, gr)
mat |
dgCMatrix interaction matrix such as produced by
|
gr |
factor specifying features groups. Must have length equal
to number of columns in |
Numeric vector.
data("remap_mini")
y <- colnames(remap_mini)
# simple coverage
gr <- seq_along(y) %>% as.factor()
getCoverage(remap_mini, gr)
# per cell type coverage
gr <- sub(".*\\.", "", y) %>% as.factor()
getCoverage(remap_mini, gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.