Skip to contents

Extract summary statistics per cell for a set of intervals

Usage

scc_extract(scc, intervals, cells = NULL)

Arguments

scc

a ScCounts object

intervals

an intervals set. Can have a column called "peak_name" with the peak name.

cells

a vector of cell names to include. Default: all cells.

Value

a sparse matrix where rows are the intervals, columns are the cells, and values are the counts summed. If the intervals have a column called "peak_name", the rows will be the peak names, otherwise the rows will be of the form "chr:start_end"

Examples

if (FALSE) {
scc_extract(scc, gintervals(1, 0, 100))
}