Description Usage Arguments Details Value Author(s) References Examples
Retrieve the mixture model parameters of the NetResponse algorithm for a given subnetwork.
1 | 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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.