Learn R Programming

MetamapsDB (version 0.0.2)

adjacentPairs: Given a igraph object, adjacentPairs finds adjacent pairs of KOs

Description

Given a igraph object, adjacentPairs finds adjacent pairs of KOs

Usage

adjacentPairs(g, ko2ko = FALSE, ...)

Arguments

g

graph object

ko2ko

if true returns data.frame of ko pairs, if false returns the compound which its connected with

...

ellipise pass in other arguments which are required

Examples

Run this code
# NOT RUN {
# gives ko 2 ko pairs
adjacentPairs(nitrogenMetab, ko2ko=TRUE)
#        ko1       ko2 direction
#1 ko:K18246 ko:K01725       out
#2 ko:K18245 ko:K01725       out
#3 ko:K17877 ko:K17877       out
#4 ko:K17877 ko:K15876       out
#5 ko:K17877 ko:K15371       out
#6 ko:K17877 ko:K10946       out
# }

Run the code above in your browser using DataLab