Skip to content
Snippets Groups Projects
scaleCountsTable.Rd 694 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Please edit documentation in R/sequencing_depth_scaling.R
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\name{scaleCountsTable}
\alias{scaleCountsTable}
\title{Scale Counts Table}
\usage{
scaleCountsTable(countsTable, scalingDepth_factor)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}
\arguments{
\item{countsTable}{A counts table containing raw read counts.}

\item{scalingDepth_factor}{sequencing depth factor vector}
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}
\value{
A scaled counts table.
}
\description{
This function scales a counts table based on the expected sequencing depth per sample.
}
\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)
Arnaud Duvermy's avatar
Arnaud Duvermy committed

}