UnifyRowNames: Unify row names in data frame with the same order of gene...

Description Usage Arguments Value Examples

View source: R/Enrich.R

Description

Unify row names in data frame with the same order of gene list.

Usage

1
UnifyRowNames(x,geneList)

Arguments

x

data frame with gene symbol in the row name

geneList

a gene list

Value

a data frame having the gene in row name ordered as in gene list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cgds <- CGDS("http://www.cbioportal.org/")
## Not run: 
geneList <- whichGeneList("73")
ProfData <- getProfileData(cgds,
 geneList, "gbm_tcga_pub_mrna", "gbm_tcga_pub_all")
rownames(ProfData) <- NULL
geneListOrder <- UnifyRowNames(list(
list1=list(df1=ProfData,df2=ProfData),
 list2=list(df3=ProfData,df4=ProfData)),
  geneList)
  
## End(Not run)

bioCancer documentation built on Nov. 8, 2020, 6:26 p.m.