% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module5_drc.R
\name{import_dose_response}
\alias{import_dose_response}
\title{Import gradient dose-response data}
\usage{
import_dose_response(
  data,
  compound_col = "compound_id",
  concentration_col = "concentration",
  response_col = "viability",
  group_cols = NULL
)
}
\arguments{
\item{data}{A data frame, or a path to a csv/txt/xlsx file.}

\item{compound_col, concentration_col, response_col}{Names of the compound,
concentration and response columns in \code{data}.}

\item{group_cols}{Optional grouping columns kept alongside each curve (for
example \code{"cell_line"}).}
}
\value{
An \code{hts_dose} object (data frame) with columns \code{compound_id},
\code{concentration}, \code{response}, any \code{group_cols}, and canonical class.
}
\description{
Standardises a secondary (dose-response) screening table into the columns
expected by the fitting engine, matching each compound to its concentration
gradient and response, ready for \code{\link[=fit_4pl_curve]{fit_4pl_curve()}}.
}
\examples{
dr <- import_dose_response(hts_dose_response, response_col = "viability",
  group_cols = "cell_line")
head(dr)

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