Skip to contents

Function to scores results of regulator scoring analysis.

Usage

score.nodes(g, G, h = 3, mode = "all")

Arguments

g

Required. An igraph object with n vertices

G

Required. A named vector of node scores.

h

Optional. Neighborhood search distance (h nodes away from current node) (Default = 3)

mode

Optional. One of c("all", "out", "in", "total"). Character string, "out" for out-degree, "in" for in-degree or "all" for the sum of the two. For undirected graphs this argument is ignored. (Default = 'all')

Value

node.scores = n x 1 dimensional vector of node scores based on its neighborhood