computeCellCounts: Get cell counts with metadata

View source: R/cellCounts.R

computeCellCountsR Documentation

Get cell counts with metadata

Description

Get cell counts with metadata for each sample

Usage

computeCellCounts(sce, annotation, sampleIDs)

Arguments

sce

SingleCellExperiment

annotation

string indicating column in colData(sce) storing cell type annotations

sampleIDs

string indicating column in colData(sce) storing sample identifers

Value

matrix storing cell counts

Examples

library(muscat)
library(SingleCellExperiment)

data(example_sce)

counts <- computeCellCounts(example_sce, "cluster_id", "sample_id")

counts[1:4, 1:4]


GabrielHoffman/dreamlet documentation built on Nov. 8, 2024, 2:45 a.m.