Skip to contents

This function scales a counts table based on the expected sequencing depth per sample.

Usage

scaleCountsTable(countsTable, scalingDepth_factor)

Arguments

countsTable

A counts table containing raw read counts.

scalingDepth_factor

sequencing depth factor vector

Value

A scaled counts table.

Examples

mock_data <- list(counts = matrix(c(10, 20, 30, 20, 30, 10, 10, 20, 20, 20, 30, 10), ncol = 4))
scaled_counts <- scaleCountsTable(countsTable = mock_data$counts, 2)