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)

Example output

iid_1 iid_2 iid_3 iid_4 iid_5 
 1635  1581  1941  1788  1817 
iid_1 iid_2 iid_3 iid_4 iid_5 
 1401  1589  2189  2184  1706 
iid_1 iid_2 iid_3 iid_4 iid_5 
 3036  3170  4130  3972  3523 

COMPASS documentation built on Nov. 8, 2020, 8:05 p.m.