Learn R Programming

NetRep (version 1.0.2)

NetProps: Calculate the network properties

Description

Calculate the network properties

Usage

NetProps(data, net, moduleAssignments, modules)

Arguments

data
data matrix from the dataset in which to calculate the network properties.
net
adjacency matrix of network edge weights between all pairs of nodes in the dataset in which to calculate the network properties.
moduleAssignments
a named character vector containing the module each node belongs to in the discovery dataset.
modules
a character vector of modules for which to calculate the network properties for.

Value

a list containing the summary profile, node contribution, module coherence, weighted degree, and average edge weight for each 'module'.

Details

Input expectations: Note that this function expects all inputs to be sensible, as checked by the R function 'checkUserInput' and processed by 'networkProperties'. These requirements are:
  • The ordering of node names across 'data' and 'net' is consistent.
  • The columns of 'data' are the nodes.
  • 'net' is a square matrix, and its rownames are identical to its column names.
  • 'moduleAssigments' is a named character vector, where the names represent node labels found in the discovery dataset. Unlike 'PermutationProcedure', these may include nodes that are not present in 'data' and 'net'.
  • The module labels specified in 'modules' must occur in 'moduleAssignments'.