Description Usage Arguments Value Author(s) Examples
Generates a network object using the contain of a SIF file. When a file is specified for the subnetwork to be tested, the information of the subnetwork is extracted from the SIF file and added to the network object.
1 |
netFileName |
a |
fileType |
The format of the file. At this moment,
only "SIF" format is accepted. Default: |
subNetFileName |
a |
a list marked as an network class
is returned.
This list has the following components:
netAll
a hash
containing all
the information from the global network.
nodesAll
a vector of string representing
all the nodes present in the global network.
nodesSubNet
a vector of string representing
all the nodes present in the subnetwork to be tested or
NULL
when information not known.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Access SIF file for global network stored in subnetsim package
networkFile <- system.file("extdata", "demo_network.sif",
package="subnetsim")
## Create a network without the subnetwork information
demo_network <- network(netFileName = networkFile)
## Access SIF file for global network stored in subnetsim package
subnetworkFile <- system.file("extdata", "demo_subnetwork.sif",
package="subnetsim")
## Create a network with the subnetwork information
demo_network_with_sub <- network(netFileName = networkFile,
subNetFileName = subnetworkFile)
## The network is of object of class "network"
class(demo_network_with_sub)
## The list of nodes present in the subnetwork
demo_network_with_sub$nodesSubNet
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.