cellCounts: Extract cell counts from cfList

Description Usage Arguments Value Examples

View source: R/cellCounts.R

Description

A function to add the frequency (or abundance) of cell clusters per sample to a cfList.

Usage

1

Arguments

cfList

a cfList object. It should contain at least data in the 'expr' slot.

frequency

one of

  • a logical value. if FALSE, the abundance of the cell counts are used. If TRUE, the frequency of the total amount of given cells is used.

  • a numeric vector of same length as amount of samples

scale

a logical value. Do the cell frequencies need to be centered and scaled? The default scale function is called.

Value

Returns a cfList with a 'counts' slot.

Examples

1
2
3
4
5
6
# Read Data
dirFCS <- system.file("extdata", package="cytofast")
cfData <- readCytosploreFCS(dir = dirFCS, colNames = "description")

# Add cell counts to cfList
cfData <- cellCounts(cfData)

cytofast documentation built on Nov. 8, 2020, 5:46 p.m.