Learn R Programming

Seurat (version 4.3.0.1)

LogNormalize: Normalize raw data

Description

Normalize count data per cell and transform to log scale

Usage

LogNormalize(data, scale.factor = 10000, verbose = TRUE)

Value

Returns a matrix with the normalize and log transformed data

Arguments

data

Matrix with the raw count data

scale.factor

Scale the data. Default is 1e4

verbose

Print progress

Examples

Run this code
mat <- matrix(data = rbinom(n = 25, size = 5, prob = 0.2), nrow = 5)
mat
mat_norm <- LogNormalize(data = mat)
mat_norm

Run the code above in your browser using DataLab