normalize: Normalize cell numbers

Description Usage Arguments Details Author(s) Examples

Description

Normalize the relative or percental cell numbers.

Usage

1
2
3
4
5
## S4 method for signature 'data.frame'
normalize(x,method="mean",show_avg=TRUE,...)

## S4 method for signature 'matrix'
normalize(x,method="mean",show_avg=TRUE,...)

Arguments

x

Data frame o matrix of all relative or percental cell numbers. Use one row per sample and one column per gate. Use the first column for the first gate. If your first column is used e.g. for sample names read the manual before you continue. The names of the gates may not contain any whitespace. If the values contain commas they must be expressed as ".". Missing values or NA's are allowed but should be expressed as "NA" or empty entries within the table.

method

Character string indicating which method is used for normalization (default="mean"). Can be changed to "first". See Details for further information.

show_avg

logical (default=TRUE). Show average values. Can be changed to FALSE if the averages are not of interest. Averages are only shown if method="mean".

...

Additional parameters used for printing and writing e.g. number of digits.

Details

This step should be done to ensure the comparability of gates with highly different (low and high) cell abundances. There are two different methods to do this. By choosing "mean" the individual cell number of each gate is normalized by dividing the relative value by the mean of the relative or percental cell numbers for that gate. By choosing "first" the individual cell number of each gate is normalized by dividing the relative value by the first value of that gate.

Author(s)

Joachim Schumann joachim.schumann@ufz.de, Christin Koch christin.koch@ufz.de, Susanne G<c3><bc>nther susanne.guenther@ufz.de, Ingo Fetzer info.fetzer@stockholmresilience.su.se, Susann M<c3><bc>ller susann.mueller@ufz.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Normalize the percental cell numbers saved in dataset Cell_number_sample
## Use the default method and show the averages with two digits
## Note that the averages are very different but the normalized values
## are in the same range

data(Cell_number_sample)
normalize(Cell_number_sample[,-1],digits=2)

## Use the method "first"
## Print normalized values
## After normalization the first value of every gate is 1.00

data(Cell_number_sample)
normalize(Cell_number_sample[,-1],method="first",digits=2)

flowCyBar documentation built on Nov. 8, 2020, 6:59 p.m.