Description Usage Arguments Details Examples
Note that for 1 gene is attached 1 enzyme which is an edge in our graph. In order to calcul a distance from vertice to vertice this function is called twice in function 'getFinalDFSHortestDistance'.
1 2 | ## S4 method for signature 'Graph'
associatedShortestPaths(object, data)
|
object |
Graph, data(mg, m, genes, metabolites) |
First call is to calcul all the distance for the one vertice of the gene to the all metabolites, the second call is to calcul the distance from the other vertice to all metabolites and then choose the smallest distance between the 2.
The selection of the first vertice and the second vertice is done in a other function 'getIdGeneInGraph'
param data where mg = id (from igraph in object Graph) of 1 metabolite related to the gene m = id (igraph in object Graph) genes = hsa:... id from KEGG metabolites = C.... id from KEGG
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.