Description Usage Arguments Details Examples
Calls getIdGeneInGraph() twice to get : Modification of dataframe giving in entry by user, from c("gene", "metabolite") to 2 dataFrame where indexMetabolite = 1 d1 = c("metabolite1giIdIniGraph", "metabolitesIdIniGraph") #' where indexMetabolite = 2 d2 = c("metabolite2giIdIniGraph", "metabolitesIdIniGraph")
1 2 3 | ## S4 method for signature 'Graph'
getFinalDFSHortestDistance(object, associatedGeneMetaDF,
completeMetaboliteDF)
|
graphe, |
kegg id of compound of interest, dataframe of compounds (nodes) |
This is because genes are edges and we calculate vertex to vertex the distance between genes and metabolites. From each gene we want to take the shortest distance between the 2 vertex attached, so we calcul both and in an other function we take the smallest and that will be the output.
This function keeps, between the 2 metabolites of each gene vertexes, the distance that is the smallest between the 2 to the same metabolite.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.