% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module1_preqc.R
\name{calc_sb_ratio}
\alias{calc_sb_ratio}
\title{Signal-to-background ratio per plate}
\usage{
calc_sb_ratio(
  hts_raw,
  signal_col = "signal",
  nc_label = "NC",
  pc_label = "PC",
  sb_min = 2
)
}
\arguments{
\item{hts_raw}{An \code{hts_raw} object.}

\item{signal_col}{Name of the signal column. Default \code{"signal"}.}

\item{nc_label, pc_label}{Well-type labels for the negative and positive
controls. Defaults \code{"NC"} and \code{"PC"}.}

\item{sb_min}{Acceptance threshold. Default \code{2}.}
}
\value{
A data frame with one row per plate: \code{plate_id}, \code{mean_nc},
\code{mean_pc}, \code{sb} (high-mean / low-mean) and a logical \code{pass}.
}
\description{
The ratio of the high-signal control mean to the low-signal control mean.
\strong{What it is for:} S/B is the quickest sanity check that the assay actually
produced a usable dynamic range — that the untreated (high) and killed (low)
controls are far enough apart on the raw scale. It ignores variability, so it
complements but does not replace the Z'-factor; a common minimum is \verb{>= 2}.
}
\examples{
calc_sb_ratio(read_hts_plate(hts_primary_raw))

}
\seealso{
\code{\link[=calc_sn_ratio]{calc_sn_ratio()}}, \code{\link[=calc_plate_qc]{calc_plate_qc()}}
}
