R/addRoadmapColors.R

Defines functions addRoadmapColors

Documented in addRoadmapColors

#' convenience function to relabel states with standard colors 
#' 
#' @param HMM   a GRanges with !is.null(mcols(HMM)$name)
#' @param what  is $name a "state", state"num", or "mnemonic"? ("mnemonic")
#' @param cols  which colors to use? (default is 18-state Roadmap colors)
#' 
#' @return      a GRanges with adjusted colors
#' 
#' @export
addRoadmapColors <- function(HMM, what=c("mnemonic","state","num"), cols=NULL) {
 
  if (is.null(cols)) {
    message("Defaulting to 18-state Roadmap colors...")
    data("remc18state", package="chromophobe")
    (cols <- remc18state)
  }

  stop("Not finished")

}
ttriche/chromophobe documentation built on Oct. 14, 2024, 11:59 a.m.