get.cepa: get single cepa object from cepa.all object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/get_result.R

Description

get single cepa object from cepa.all object

Usage

1
get.cepa(x, id = NULL, cen = 1)

Arguments

x

a cepa.all object

id

index or the name of the pathway

cen

index or the name of the centrality

Details

The 'cepa.all object contains the result for pathways under several centrality measurements. In cepa.all object, each pathway under a specific centrality is a single cepa object. The get.cepa function is used to get the cepa object from the cepa.all object.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

cepa, cepa.all

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
data(PID.db)

# ORA extension
data(gene.list)
# will spend about 20 min
res.ora = cepa.all(dif = gene.list$dif, bk = gene.list$bk, pc = PID.db$NCI)
ora = get.cepa(res.ora, id = 5, cen = 3)

# GSA extension
# P53_symbol.gct and P53_cls can be downloaded from
# https://mcube.nju.edu.cn/jwang/lab/soft/cepa/
eset = read.gct("P53_symbol.gct")
label = read.cls("P53.cls", treatment="MUT", control="WT")
# will spend about 45 min
res.gsa = cepa.all(mat = eset, label = label, pc = PID.db$NCI)
gsa = get.cepa(res.gsa, id = 5, cen = 3)

## End(Not run)

jokergoo/CePa documentation built on July 2, 2021, 10:28 p.m.