Description Usage Arguments Value Author(s) Examples
Generationg multiple simulated sub-networks from a network. All subnetworks have the same number of nodes.
1 | simuleSubNet(netAll, nodesAll, nbIter, nbNodes, seedV)
|
netAll |
a |
nodesAll |
|
nbIter |
a single |
nbNodes |
a |
seedV |
a |
a data.frame
containing the information from all simulated
subnetworks. Each row of the data.frame
corresponds to one simulation:
nbLink: Number of links in the simulated subnetworks
nbNodesOneLink: Number of nodes of the simulated subnetworks including the first-degree neighbor nodes.
nbLinkOneLink Number of links of the simulated subnetworks including all the links from the first-degree neighbor nodes.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Access demo files stored in the subnetsim package
networkFile <- system.file("extdata", "demo_network.sif", package="subnetsim")
subnetworkFile <- system.file("extdata", "demo_subnetwork.sif", package="subnetsim")
# Load a global network and its tested subnetwork using SIF format files
demo_network_with_sub <- network(netFileName = networkFile,
subNetFileName = subnetworkFile)
# Run simulation
simulatedSubnetwork <- subnetsim:::simuleSubNet(netAll = demo_network_with_sub$netAll,
nodesAll = demo_network_with_sub$nodesAll,
nbIter = 2, nbNodes <- length(demo_network_with_sub$nodesSubNet),
seedV = 3122)
# To see a summary of the content of the "subnetwork" object
simulatedSubnetwork
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.