% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module5_drc.R
\name{filter_low_quality_curve}
\alias{filter_low_quality_curve}
\title{Drop low-quality dose-response curves}
\usage{
filter_low_quality_curve(drc, rsq_min = NULL)
}
\arguments{
\item{drc}{An \code{hts_drc} object.}

\item{rsq_min}{Minimum acceptable \eqn{R^2}. Defaults to the value stored at
fit time.}
}
\value{
The filtered \code{hts_drc} object; removed curve ids are stored in
\code{attr(drc, "removed")}.
}
\description{
Removes curves that failed to fit or whose \eqn{R^2} falls below the
threshold, leaving only trustworthy dose-response models.
}
\examples{
drc <- fit_4pl_curve(import_dose_response(hts_dose_response,
  response_col = "viability", group_cols = "cell_line"),
  group_cols = "cell_line")
clean <- filter_low_quality_curve(drc)
nrow(clean$meta)

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