% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module7_report.R
\name{annotate_hit_info}
\alias{annotate_hit_info}
\title{Annotate hits with compound metadata}
\usage{
annotate_hit_info(hits, meta, by = "compound_id")
}
\arguments{
\item{hits}{A hit data frame (for example from \code{\link[=rank_hit_compound]{rank_hit_compound()}}).}

\item{meta}{A metadata data frame such as \link{hts_compound_meta}.}

\item{by}{Join key present in both. Default \code{"compound_id"}.}
}
\value{
\code{hits} with the metadata columns merged in (left join), row order
preserved.
}
\description{
Joins external compound metadata (name, target, mechanism, library source)
onto a hit table.
}
\examples{
drc <- calc_drc_auc(fit_4pl_curve(import_dose_response(hts_dose_response,
  response_col = "viability", group_cols = "cell_line"),
  group_cols = "cell_line"))
params <- merge(extract_drc_params(drc), drc$meta[, c("curve_id", "auc")])
annotate_hit_info(rank_hit_compound(params), hts_compound_meta)

}
\seealso{
\code{\link[=rank_hit_compound]{rank_hit_compound()}}, \code{\link[=export_hit_table]{export_hit_table()}}
}
