subS2B: S2B auxiliary function

Description Usage Arguments Value

Description

This function computes S2B scores, without specificity scores

Usage

1
subS2B(seed_graph, index1, index2, meandist)

Arguments

seed_graph

igraph object of the network to be searched.

index1

vector with integer node identifiers.

index2

vector with integer node identifiers.

meandist

length threshold above which shortest paths are not included in S2B computation

Value

allcount - vector with S2B scores for each node in the graph

smat1 - matrix with one row for each node in the network and a column for each seed in index1. If the matrix element (i,j) is 1, then index1[j] was connected to the other seed set through a shortest path going through node i, and shorter than meandist

smat2 - matrix similar to smat1 but reffering to index 2 seeds

maxS2B - theoretical maximum of absolute S2B scores for this network and seed sets


frpinto/S2B documentation built on May 8, 2019, 2:33 a.m.