R/get_haplotype_lut.R

Defines functions get_haplotype_lut

Documented in get_haplotype_lut

#' The mapping from an MHCnuggets name to an ID
#' @export
get_haplotype_lut <- function() {
  t <- tibble::tibble(
    haplotype = c(
      mhcnuggetsr::get_trained_mhc_1_haplotypes(),
      mhcnuggetsr::get_trained_mhc_2_haplotypes()
    ),
    id = NA
  )
  t$id <- paste0("h", seq(1, nrow(t)))
  t
}
richelbilderbeek/mhcnpreds documentation built on Nov. 25, 2020, 3:59 a.m.