% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module1_preqc.R
\name{calc_sn_ratio}
\alias{calc_sn_ratio}
\title{Signal-to-noise ratio per plate}
\usage{
calc_sn_ratio(
  hts_raw,
  signal_col = "signal",
  nc_label = "NC",
  pc_label = "PC",
  sn_min = 3
)
}
\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{sn_min}{Acceptance threshold. Default \code{3}.}
}
\value{
A data frame with one row per plate: \code{plate_id}, \code{mean_nc},
\code{mean_pc}, \code{sn} (window / low-control SD) and a logical \code{pass}.
}
\description{
The assay window divided by the noise of the low-signal control. \strong{What it is
for:} S/N asks whether the separation between the two controls is large
compared with the background scatter, i.e. whether a real change would rise
above the noise floor. It is more informative than S/B because it accounts
for variability; higher is better, with \verb{>= 3} a reasonable floor.
}
\examples{
calc_sn_ratio(read_hts_plate(hts_primary_raw))

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