get.combined.network
get.combined.network.RdThis function will merge two networks into one network prepared for SINBA activity calculation.
Arguments
- network1
network object, which is generated by
get.single.networkcontaningnetwork_data.network_datis a data.frame, contains all the information of the network SJARACNe constructed.network_datis a data.frame, contains all the information of the network SJARACNe constructed and must contain four columns with column names "source" (driver) and "target" (target genes), "MI" (mutual information) and "spearman" (spearman correlation coefficient).- network2
network object, which is generated by
get.single.networkcontaningnetwork_data.network_datis a data.frame, contains all the information of the network SJARACNe constructed and must contain four columns with column names "source" (driver) and "target" (target genes), "MI" (mutual information) and "spearman" (spearman correlation coefficient).
Examples
out_net_file1<-"path1_to_network_file/consensus_network_ncol_.txt"
out_net_file2<-"path2_to_network_file/consensus_network_ncol_.txt"
net1 <- get.single.network(network_file=out_net_file1)
#> Error in get.single.network(network_file = out_net_file1): could not find function "get.single.network"
net2 <- get.single.network(network_file=out_net_file2)
#> Error in get.single.network(network_file = out_net_file2): could not find function "get.single.network"
combined.network<-get.combined.network(network1=net1,network2=net2)
#> Error in get.combined.network(network1 = net1, network2 = net2): could not find function "get.combined.network"
if (FALSE) { # \dontrun{
} # }