R/fix_gencode.R

Defines functions fix_gencode

Documented in fix_gencode

#' helper function to make Gencode version decoding slightly less hellish.
#' 
#' @param release   the release string
#' 
#' @return          a standardized release string ("33" or "M24" or the like)
#'
#' @export
fix_gencode <- function(release) {
  
  release <- toupper(release)
  release <- sub("^VM", "M", ignore=TRUE, release)
  release <- sub("gencode_", "", ignore=TRUE, release)
  release <- sub("gencode", "", ignore=TRUE, release)
  return(release) 

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