Skip to contents

Return the total coverage of each non-zero coordinate in an ScCounts/McCounts object

Usage

mcc_marginal(mc_counts, metacells = NULL)

scc_marginal(sc_counts, cells = NULL)

Arguments

mc_counts

a McCounts object

metacells

names of metacells to include. Default: all metacells.

cells

names of cells to include. Default: all cells.

Value

an intervals set with an additional column called "cov" with the total coverage for each coordinate

Examples

if (FALSE) {
# cell counts
sc_counts <- scc_read("pbmc_reads")
sc_mars <- scc_marginal(sc_counts)

# metacell counts
mc_counts <- mcc_read("pbmc_reads_mc")
mc_mars <- mcc_marginal(mc_counts)
}