get.model.parameters: get.model.parameters

Description Usage Arguments Details Value Author(s) References Examples

View source: R/utilities.R

Description

Retrieve the mixture model parameters of the NetResponse algorithm for a given subnetwork.

Usage

1
get.model.parameters(model, subnet.id = NULL)

Arguments

model

Result from NetResponse (detect.responses function).

subnet.id

Subnet identifier. A natural number which specifies one of the subnetworks within the 'model' object.

Details

Only the non-empty components are returned. Note: the original data matrix needs to be provided for function call separately.

Value

A list with the following elements:

mu

Centroids for the mixture components. Components x nodes.

sd

Standard deviations for the mixture components. A vector over the nodes for each component, implying the diagonal covariance matrix of the model (i.e. diag(std^2)). Components x nodes

w

Vector of component weights.

nodes

List of nodes in the subnetwork.

K

Number of mixture components.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

Leo Lahti et al.: Global modeling of transcriptional responses in interaction networks. Bioinformatics (2010). See citation('netresponse') for details.

Examples

1
2
3
4
5
6
7
8
# Load toy data
data( toydata )          # Load toy data set
D     <- toydata$emat    # Response matrix (for example, gene expression)
model <- toydata$model   # Pre-calculated model

# Get model parameters for a given subnet
# (Gaussian mixture: mean, covariance diagonal, mixture proportions)
get.model.parameters(model, subnet.id = 1)

netresponse documentation built on Nov. 8, 2020, 5:04 p.m.