R/prepare_output_build.R

Defines functions prepare_output_build

prepare_output_build <- function(genome_build_output){
    opts <- c("hg19","hg38")
    if(is.null(genome_build_output) ||
       missing(genome_build_output) ||
       (!tolower(genome_build_output) %in% opts)){
        stop("Must provide valid genome_build_output: 'hg19' or 'hg38'")
    }
    return(tolower(genome_build_output)[[1]])
}
serachoi1230/EpiCompare documentation built on Jan. 30, 2024, 11:37 a.m.