% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module1_preqc.R
\name{filter_valid_plates}
\alias{filter_valid_plates}
\title{Keep only plates that pass the Z' threshold}
\usage{
filter_valid_plates(
  hts_raw,
  z_prime_min = 0.5,
  signal_col = "signal",
  nc_label = "NC",
  pc_label = "PC"
)
}
\arguments{
\item{hts_raw}{An \code{hts_raw} object.}

\item{z_prime_min}{Acceptance threshold. Default \code{0.5}.}

\item{signal_col, nc_label, pc_label}{Passed to \code{\link[=calc_z_prime]{calc_z_prime()}}.}
}
\value{
The \code{hts_raw} object restricted to passing plates, with the Z'
summary table stored in \code{attr(x, "zprime")} and the dropped plate ids in
\code{attr(x, "dropped_plates")}.
}
\description{
Removes whole plates whose Z' factor falls below the acceptance threshold,
returning a clean data set for downstream normalisation.
}
\examples{
raw <- read_hts_plate(hts_primary_raw)
clean <- filter_valid_plates(raw)
attr(clean, "dropped_plates")

}
\seealso{
\code{\link[=calc_z_prime]{calc_z_prime()}}
}
