Description Usage Arguments Value Author(s) Examples
Simulates a fixed number of subnetwork through bootstrapping. Each subnetwork contains the same fixed number of nodes which correspond to the number of nodes of the tested subnetwork. For all simulated subetwork, three important informations are extracted: the number of nodes present when including the first-degree neighbor nodes, the number of links and the number of links when including all links from the first-degree neighbor nodes. Beware that the function can take some time to process when the number of iterations is large.
1 2 3 4 5 6 7 8 |
x |
the output object from |
bins |
the number of bins used to generate the histograms |
digits |
the number of digits to use when printing numbers |
network |
an object of |
nbIter |
a single |
nbNodes |
a single |
nbLink |
a single |
nbNodesOneLink |
a single |
nbLinkOneLink |
a single |
seedV |
a single |
... |
arguments passed to or from other methods |
a list is returned for use by print.subnetwork
and
plot.subnetwork
. This list has the following components:
nbNodesOneLink
a vector of the number of nodes
for each simulated subnetwork extended to contain the
first-degree nodes.
nbLinkOneLink
a vector of the number of links
for each simulated subnetwork extended to contain all
the links from thefirst-degree nodes.
nbLink
a vector of the number of links
for each simulated subnetwork.
nbIter
a single integer
corresponding
to the number of iterations done.
nbNodes
a single integer
corresponding
to the number of nodes of the tested subnetwork.
nbNodesOneLinkTested
a single integer
corresponding to the number of nodes of the tested subnetwork
when first-degree neighbor nodes are included.
nbLinkOneLinkTested
a single integer
corresponding to the number of links of the tested subnetwork
including all links from the first-degree neighbor nodes.
nbLinkTested
a single integer
corresponding to the number of links of the tested subnetwork.
seed
a single numeric
corresponding
to the seed used for the analysis.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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 <- subnetwork(network = demo_network_with_sub,
nbIter = 20, seedV = 313)
# 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.