R/get_gencode_species.R

Defines functions get_gencode_species

Documented in get_gencode_species

#' Gencode prefaces mouse releases with an M, and human releases with nothing.
#'
#' @param release   the release name (e.g. M24 or 33) 
#'
#' @return          the release species (Mus musculus or Homo sapiens)
#' 
#' @export
get_gencode_species <- function(release) { 

  release <- fix_gencode(release) 
  ifelse(toupper(substr(release, 1, 1)) == "M", "Mus musculus", "Homo sapiens")

}
trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.