R/read_key.R

Defines functions read_key

#' @export
# reads chrpos-rsid correspondence file

read_key <- function(file = NULL, chr = NULL){
  # load(file)
  # out <- get(paste0("chr", chr))
  out <- readRDS(paste0(file, "chr", chr, ".Rds"))
  return(out)
}
vkarhune/mrpipe documentation built on Jan. 12, 2022, 9:45 a.m.