calculatePathlength: Calculate pathlength from binary interactions

Description Usage Arguments Value Examples

View source: R/generateHypotheses.R

Description

Calculate shortest paths between all members of a binary interaction network. This function creates a table that contains all possible combinations of 2 from all input proteins (binomial coefficient (length(proteins) over 2)).

Usage

1
calculatePathlength(binaryInteractionTable)

Arguments

binaryInteractionTable

data.table with binary interactions between "a" and "b" as returned from generateBinaryNetwork()

Value

data.table with three columns containing all possible combinations of proteins:

Examples

1
2
3
4
5
6
7
8
## Load example data
complexHypotheses <- exampleComplexHypotheses

## Generate the binary network
binaryInteractions <- generateBinaryNetwork(complex_hypotheses = complexHypotheses)

## Calculate the path lengths
shortestPaths <- calculatePathlength(binaryInteractions)

CCprofiler/CCprofiler documentation built on May 19, 2021, 7:40 p.m.