R/fun_load_chr_no.R

Defines functions fun_load_chr_no

Documented in fun_load_chr_no

#' Chromosome number loading function.
#'
#' This function attempts to load the chromosome number.
#'
#' @param organism Human or Mouse genome.
#' @return chr_no
#' @examples
#' fun_load_chr_no("Human")
#' @export
fun_load_chr_no <- function(organism) {
  if (organism %in% c("Human", "hg19", "hg38")) {
    return(24)
  }
  if (organism %in% c("Mouse", "mm10")) {
    return(21)
  }
}

# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL

Try the MicroSEC package in your browser

Any scripts or data that you put into this service are public.

MicroSEC documentation built on Sept. 11, 2024, 6:06 p.m.