S2B: S2B main function

Description Usage Arguments Value

Description

This function computes S2B scores, with specificity scores.

Usage

1
S2B(seed_graph, index1, index2, nrep, nrep2)

Arguments

seed_graph

igraph object of the network to be searched.

index1

vector with integer node identifiers.

index2

vector with integer node identifiers.

nrep

number of randomizations (shuffle edges maintaining node degree) to compute specificity score 1

nrep2

number of randomizations (shuffle seed identity) to compute specificity score 2

Value

s2btable - dataframe with with S2B and specificity scores for each node in the graph

seedmat1 - 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

seedmat2 - matrix similar to seedmat1 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.