counts_to_cpm: Compute counts per million (CPM)

Description Usage Arguments Value

Description

Convert raw counts to counts per million (CPM) by dividing each column by its total then multiplying by 1,000,000. Spike-ins should be excluded from the calculation of total expression in order to correct for total cell RNA content, therefore they should be specified to exclude them from downstream analysis

Usage

1
counts_to_cpm(expr_mat, spikes = NULL)

Arguments

expr_mat

Input matrix with expression values for genes in the form (Genes x Samples)

spikes

A vector of genes that were spike-ins in the original experiment

Value

A matrix with CPM expression values


ssarda/genomeutils documentation built on May 30, 2019, 8:42 a.m.