get.model.parameters {netresponse} | R Documentation |
Retrieve the mixture model parameters of the NetResponse algorithm for a given subnetwork.
get.model.parameters(model, subnet.id = NULL)
model |
Result from NetResponse (detect.responses function). |
subnet.id |
Subnet identifier. A natural number which specifies one of the subnetworks within the 'model' object. |
Only the non-empty components are returned. Note: the original data matrix needs to be provided for function call separately.
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. |
Leo Lahti leo.lahti@iki.fi
Leo Lahti et al.: Global modeling of transcriptional responses in interaction networks. Bioinformatics (2010). See citation("netresponse") for details.
# 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)