% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module4_primary.R
\name{summarize_sigma_hits}
\alias{summarize_sigma_hits}
\title{Summarise sigma-based hits}
\usage{
summarize_sigma_hits(hits)
}
\arguments{
\item{hits}{A data frame from \code{\link[=select_sigma_hits]{select_sigma_hits()}}.}
}
\value{
A data frame with one row per sigma level (1, 2, 3): \code{sigma},
\code{n_beyond} (compounds clearing it), \code{frac_beyond}, \code{expected_frac}
(normal-theory tail probability) and \code{expected_n} (expected count).
}
\description{
Counts how many compounds clear 1, 2 and 3 sigma from the library centre and
compares each count to what a perfectly normal, hit-free distribution would
predict, so enrichment of the tail over chance is obvious.
}
\examples{
norm <- norm_by_control(baseline_subtract(read_hts_plate(hts_primary_raw)))
summarize_sigma_hits(select_sigma_hits(norm))

}
\seealso{
\code{\link[=select_sigma_hits]{select_sigma_hits()}}, \code{\link[=plot_sigma_hits]{plot_sigma_hits()}}
}
