Learn R Programming

cellity (version 1.0.2)

normalise_by_factor: Internal function to normalize by library size

Description

Internal function to normalize by library size

Usage

normalise_by_factor(counts, norm_factor)

Arguments

counts
matrix of counts
norm_factor
vector of normalisation factors

Value

a matrix with normalized gene counts

Examples

Run this code
data(sample_counts)
data(sample_stats)
sample_counts_nm <- normalise_by_factor(sample_counts, colSums(sample_counts))

Run the code above in your browser using DataLab