% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module1_preqc.R
\name{baseline_subtract}
\alias{baseline_subtract}
\title{Subtract the blank background signal from a plate}
\usage{
baseline_subtract(hts_raw, blank_label = "Blank", clip_zero = TRUE)
}
\arguments{
\item{hts_raw}{An \code{hts_raw} object from \code{\link[=read_hts_plate]{read_hts_plate()}}.}

\item{blank_label}{Well-type label identifying blank wells. Default
\code{"Blank"}.}

\item{clip_zero}{Logical; if \code{TRUE} (default) background-subtracted signals
are floored at zero.}
}
\value{
The input object with \code{signal} replaced by the background-subtracted
value and a new \code{signal_raw} column holding the original signal.
}
\description{
Removes the per-plate instrument background by subtracting the mean blank
(no-cell) signal from every well, a standard first step for luminescence and
fluorescence readouts. The original signal is preserved in \code{signal_raw}.
}
\examples{
raw <- read_hts_plate(hts_primary_raw)
bs <- baseline_subtract(raw)
head(bs[, c("well_type", "signal_raw", "signal")])

}
\seealso{
\code{\link[=read_hts_plate]{read_hts_plate()}}, \code{\link[=norm_by_control]{norm_by_control()}}
}
