normalise_by_factor {cellity} | R Documentation

## 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

    data(sample_counts)
    data(sample_stats)
    sample_counts_nm <- normalise_by_factor(sample_counts, colSums(sample_counts))

[Package cellity version 1.12.0 Index]