R/shorten.gene.names.R

Defines functions shorten.gene.names

##function to take whatever follows "@@" off gene names
shorten.gene.names <- function(GeneNames)
  {
    GeneSymb <- GeneNames
    shorten.name <- function(name)
    {
        gsub("(\\w*)@@(\\w*)", "\\1", name, perl=TRUE)
    }
    GeneSymb <- sapply(GeneSymb, shorten.name)
    names(GeneSymb) <- NULL

    GeneSymb
  }

Try the CancerMutationAnalysis package in your browser

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

CancerMutationAnalysis documentation built on Nov. 8, 2020, 6:47 p.m.