TotalCellCounts: Compute Total Cell Counts

Description Usage Arguments Examples

View source: R/TotalCounts.R

Description

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

Usage

1

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

1
2
3
TotalCellCounts(CC, trt == "Treatment")
TotalCellCounts(CC, trt == "Control")
TotalCellCounts(CC)

RGLab/COMPASS documentation built on Feb. 11, 2021, 3:23 p.m.