R/universe.R

Defines functions universe

Documented in universe

#' Get universe og genes without duplicates
#'
#' @param bmiq_doc
#'
#' @return A character string of around 23k entries
#' @export
#'
#' @examples
universe <- function(bmiq_doc){
  bmiq_doc <- bmiq_doc[!(is.na(bmiq_doc$UCSC_RefGene_Name) | bmiq_doc$UCSC_RefGene_Name == ""),]
  bmiq_doc$UCSC_RefGene_Name <- sub(";.*", "", bmiq_doc$UCSC_RefGene_Name)
  gene_names <- unique(bmiq_doc$UCSC_RefGene_Name)
  return(gene_names)
}
fluentin44/epicR documentation built on June 29, 2022, 6:39 a.m.