getIdGeneInGraph-Graph-method: A igraph function

Description Usage Arguments Details Examples

Description

Modification of dataframe giving in entry by user, from c("gene", "metabolite") to a dataFrame contaning one metabolite associated with the gene edge in the Graph by adding igraph id from Graph object

Modification of dataframe giving in entry by user, from c("gene", "metabolite") to a dataFrame contaning one metabolite associated with the gene edge in the Graph by adding igraph id from Graph object

Usage

1
2
3
4
5
6
7
## S4 method for signature 'Graph'
getIdGeneInGraph(object, associatedGeneMetaDF,
  indexMetabolite)

## S4 method for signature 'Graph'
getIdGeneInGraph(object, associatedGeneMetaDF,
  indexMetabolite)

Arguments

Graph,

data, indexMetabolites

Graph,

data, indexMetabolites

Details

indcieMetabolite selects either the first or second metabolite related to that gene

if indexMetabolite = 1 d1 = c("metabolite1giIdIniGraph", "metabolitesIdIniGraph") if indexMetabolite = 2 d2 = c("metabolite2giIdIniGraph", "metabolitesIdIniGraph")

where Graph param is the Graph object where data is (gene, metabolite) where indice metabolites is only 1 or 2

indcieMetabolite selects either the first or second metabolite related to that gene

if indexMetabolite = 1 d1 = c("metabolite1giIdIniGraph", "metabolitesIdIniGraph") if indexMetabolite = 2 d2 = c("metabolite2giIdIniGraph", "metabolitesIdIniGraph")

where Graph param is the Graph object where data is (gene, metabolite) where indice metabolites is only 1 or 2

Examples

1
2
getIdGeneInGraph(g, data, indexMetabolite)
getIdGeneInGraph(g, data, indexMetabolite)

sandraTL/PADIGM documentation built on May 29, 2019, 1:45 p.m.