R/get_lut.R

Defines functions get_lut

Documented in get_lut

#' Get the lookup-table
#'
#' Get the lookup-table for a specific
#' peptide size and haplotype.
#' @inheritParams default_params_doc
#' @export
get_lut <- function(
  peptide_length,
  mhc_haplotype
) {
  filename <- mhcnpreds::get_lut_filename(
    peptide_length = peptide_length,
    mhc_haplotype = mhc_haplotype
  )
  readr::read_csv(
    filename,
    col_types = readr::cols(
      q = readr::col_double(),
      ic50 = readr::col_double()
    )
  )
}
richelbilderbeek/mhcnpreds documentation built on Nov. 25, 2020, 3:59 a.m.