R/convert_gn.R

Defines functions convert_gn

Documented in convert_gn

#' Convert gene identifiers to gene symbols
#'
#' @param container environment Project container that stores sub-containers
#' for each cell type as well as results and plots from all analyses
#' @param genes character Vector of the gene identifiers to be converted to
#' gene symbols
#'
#' @return A character vector of gene symbols.
#' @export
convert_gn <- function(container, genes) {
  if (!is.null(container$gn_convert)) {
    genes <- container$gn_convert[genes,2]
  }
  return(genes)
}

Try the scITD package in your browser

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

scITD documentation built on Sept. 8, 2023, 5:11 p.m.