Learn R Programming

NEArender (version 1.4)

as_genes_fgs: Create single-gene FGS

Description

Each network node X becomes an FGS itself, so that e.g. each ID 'X' generates a list entry named 'X', the content of which is c('X'), i.e. this same gene/protein. The total length of the FGS list then equals the number of nodes in the network. This is a way to create single-gene "quasi-pathways" for a more specific network enrichment analysis.

Usage

as_genes_fgs(Net.list, Lowercase = 1)

Arguments

Net.list
the global network object, pre-created using import.net
Lowercase
render gene/protein IDs lower-case (Default:1)

See Also

import.net, import.gs

Examples

Run this code
data(net.kegg)
netpath <- net.kegg
net <- import.net(netpath)
fgs.genes <- as_genes_fgs(net)
print(fgs.genes[1:10])

Run the code above in your browser using DataLab