UnifyRowNames {bioCancer} | R Documentation

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

### Description

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

### Usage

    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

    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)

[Package bioCancer version 1.22.0 Index]