getCom: Get community

Description Usage Arguments Value Examples

View source: R/get-.R

Description

Extractor function for all the nodes from a level/community of KEGG graph

Usage

1
getCom(data, level, format = "name")

Arguments

data

FELLA.DATA object

level

Desired level, can be coded as a number or a character: 1 or "pathway"; 2 or "module"; 3 or "enzyme"; 4 or "reaction"; 5 or "compound".

format

Format of the output, "name" returns KEGG IDs whereas "id" returns vertices IDs

Value

Vector of the names/ids of the desired KEGG graph community

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(FELLA.sample)
## Pathways
getCom(FELLA.sample, 1, format = "name")
getCom(FELLA.sample, 1, format = "id")
## Modules
getCom(FELLA.sample, 2)
## Enzymes
head(getCom(FELLA.sample, 3))
## Reactions
head(getCom(FELLA.sample, 4))
## Compounds
head(getCom(FELLA.sample, 5))

b2slab/FELLA documentation built on March 3, 2021, 2:22 p.m.