Description Usage Arguments Value Author(s) See Also Examples
When running simone
, a family of networks is
generated and one may want to pick one of them according to a given
criterion. This is the job handled by the getNetwork
function.
1 2 3 | getNetwork(object,
selection = length(object$clusters),
nodes = NULL)
|
object |
output of a SIMoNe run (must be an object of class |
selection |
either a character string ( |
nodes |
a vector of character string or integers used to extract a
sub-part of the selected network, which can be more readable. When
|
Returns an object of class simone.network
, see rNetwork
for
further details.
J. Chiquet
simone
, rNetwork
, plot.simone.network
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## load the breast cancer data set
data(cancer)
attach(cancer)
## launch SIMoNe on the full data set
res <- simone(expr)
## the default selected network (at most p edges)
plot(getNetwork(res))
## a sub network on some 10 randomly selected genes
plot(getNetwork(res,"BIC", nodes = sample(colnames(expr),10)))
## a network with a penalty corresponding to at most 40 edges
plot(getNetwork(res, 40))
detach(cancer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.