Learn R Programming

paxtoolsr (version 1.6.3)

getShortestPathSif: Get the shortest between two IDs (HGNC or CHEBI)

Description

Get the shortest between two IDs (HGNC or CHEBI)

Usage

getShortestPathSif(sif, idA, idB, mode = c("all", "out", "in"),
  weights = NULL, filterFun, ...)

Arguments

sif
a SIF network
idA
HGNC or CHEBI (CHEBI:XXXXX) ID
idB
HGNC or CHEBI (CHEBI:XXXXX) ID
mode
see shortest_paths() in igraph
weights
see shortest_paths() in igraph
filterFun
a function to filter multiple paths of the same length
...
additional arguments passed on to filterFun

Value

  • a data.frame representing a SIF network

concept

paxtoolsr