% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hit_selection.R
\name{select_hits_cutoff}
\alias{select_hits_cutoff}
\title{Select hits by an absolute cut-off across conditions}
\usage{
select_hits_cutoff(
  data,
  score_cols,
  cutoff = 0,
  min_pass = length(score_cols),
  drug_col = "drug_name"
)
}
\arguments{
\item{data}{A data frame with one row per drug: a drug identifier column plus
one numeric score column per condition or cell line (for example
\code{delta_auc} or a z-scored value).}

\item{score_cols}{Character vector of the score column names to test.}

\item{cutoff}{Numeric threshold. A drug passes a column when its value is
strictly below \code{cutoff}. Default \code{0}.}

\item{min_pass}{Minimum number of \code{score_cols} that must be below \code{cutoff}
for a drug to be selected. Defaults to all of them.}

\item{drug_col}{Name of the drug identifier column, as a string. Default
\code{"drug_name"}.}
}
\value{
The subset of \code{data} (rows) meeting the criterion, with an added
integer column \code{n_pass} giving the number of score columns below \code{cutoff}.
Rows containing missing scores in the tested columns are dropped.
}
\description{
Nominates drugs whose score is below a fixed cut-off in a required number of
the supplied score columns. This implements the cut-off based hit-selection
strategy used to intersect differential responses across several cancer cell
lines.
}
\examples{
df <- data.frame(
  drug_name = c("DrugA", "DrugB", "DrugC"),
  A549 = c(-0.5, 0.2, -0.9),
  H1299 = c(-0.3, -0.1, -0.8)
)
select_hits_cutoff(df, score_cols = c("A549", "H1299"), cutoff = 0,
                   min_pass = 2)

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