View source: R/pipeline_functions.R
get.SJAracne.network | R Documentation |
get.SJAracne.network
reads SJARACNe network construction result and returns a list object
with network data frame, driver-to-target list and igraph object wrapped inside.
get.SJAracne.network(network_file = NULL)
network_file |
character, the path for storing network file. For the output of SJAracne, the name of the network file will be "consensus_network_ncol_.txt" under the output directory. |
In the demo, "consensus_network_ncol_.txt" file will be read and convert into a list object.
This list contains three elements, network_data
, target_list
and igraph_obj
.
network_dat
is a data.frame, contains all the information of the network SJARACNe constructed.
target_list
is a driver-to-target list object. Please check details in get_net2target_list
.
igraph_obj
is an igraph object used to save this directed and weighted network.
Each edge of the network has two attributes, weight
and sign
.
weight
is the "MI (mutual information)" value and sign
is the sign of the spearman
correlation coefficient (1, positive regulation; -1, negative regulation).
Return a list containing three elements, network_dat
, target_list
and igraph_obj
.
if(exists('analysis.par')==TRUE) rm(analysis.par)
network.dir <- sprintf('%s/demo1/network/',system.file(package = "NetBID2")) # use demo
network.project.name <- 'project_2019-02-14' # demo project name
project_main_dir <- 'test/'
project_name <- 'test_driver'
analysis.par <- NetBID.analysis.dir.create(project_main_dir=project_main_dir,
project_name=project_name,
network_dir=network.dir,
network_project_name=network.project.name)
analysis.par$tf.network <- get.SJAracne.network(network_file=analysis.par$tf.network.file)
analysis.par$sig.network <- get.SJAracne.network(network_file=analysis.par$sig.network.file)
## Not run:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.