getNetwork {simone} | R Documentation |
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.
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
.
## 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)