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

View source: R/Enrich.R

UnifyRowNamesR 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 <- cBioPortal(
hostname = "www.cbioportal.org",
protocol = "https",
api = "/api/v2/api-docs"
)
## Not run: 
getDataByGenes( api =  cgds,
studyId = "gbm_tcga_pub",
genes = c("NF1", "TP53", "ABL1"),
by = "hugoGeneSymbol",
molecularProfileIds = "gbm_tcga_pub_mrna"
)

## End(Not run)

kmezhoud/bioCancer documentation built on Feb. 17, 2024, 10:29 a.m.