NBumi_ConvertToInteger: Turn a matrix of expression values into integer counts

NBumiConvertToIntegerR Documentation

Turn a matrix of expression values into integer counts

Description

Reformats a provided expression matrix to be compatible with NBumi modelling.

Usage

	NBumiConvertToInteger(mat)

Arguments

mat

a numeric matrix of expression values (ideally raw UMI counts), columns = samples, rows = genes.

Details

Coerces the provided data to a matrix then rounds all values up (ceiling) to integers and removes all rows where all values are zero.

Value

Rounded, integer matrix of the original data.

Examples

mat <- matrix(rgamma(1000, shape=10, scale=20), ncol=10)
mat_int <- NBumiConvertToInteger(mat)
is.integer(mat_int)

tallulandrews/M3Drop documentation built on March 6, 2024, 1:49 a.m.