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

Share:

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/public-portal/")
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.