TotalCellCounts: Compute Total Cell Counts

View source: R/TotalCounts.R

TotalCellCountsR Documentation

Compute Total Cell Counts

Description

This function is used to compute total cell counts, per individual, from a COMPASSContainer.

Usage

TotalCellCounts(data, subset, aggregate = TRUE)

Arguments

data

A COMPASSContainer.

subset

An expression, evaluated within the metadata, defining the subset of data over which the counts are computed. If left unspecified, the counts are computed over all samples.

aggregate

Boolean; if TRUE we sum over the individual, to get total counts across samples for each individual.

Examples

TotalCellCounts(CC, trt == "Treatment")
TotalCellCounts(CC, trt == "Control")
TotalCellCounts(CC)

RGLab/COMPASS documentation built on Feb. 11, 2025, 4:40 p.m.