View source: R/pipeline_functions.R
NetBID.analysis.dir.create | R Documentation |
NetBID.analysis.dir.create
is used to help users create an organized working directory
for the driver estimation step in NetBID2 analysis.
However, it is not essential for the analysis.
It creates a hierarchcial working directory and returns a list contains this directory information.
NetBID.analysis.dir.create(
project_main_dir = NULL,
project_name = NULL,
network_dir = NULL,
network_project_name = NULL,
tf.network.file = NULL,
sig.network.file = NULL
)
project_main_dir |
character, name or absolute path of the main working directory for driver analysis. |
project_name |
character, name of the project folder. |
network_dir |
character, name or absolute path of the main working directory for network construction. |
network_project_name |
character, the project name of network construction. Or use the project name of SJARACNe. This parameter is optional. If one didn't run NetBID2 network construction part in the pipeline, he could set it to NULL. If one like to follow the NetBID2 pipeline, he should set it to the path of the TF network file and the SIG network file. |
tf.network.file |
character, the path of the TF network file (e.g. "XXX/consensus_network_ncol_.txt"). Default is the path of network_project_name. |
sig.network.file |
character, the path of the SIG network file (e.g. "XXX/consensus_network_ncol_.txt"). Default is the path of network_project_name. |
This function requires user to define the main working directory and the project’s name.
It creates a main working directory with a subdirectory of the project.
It also automatically creates three subfolders (QC, DATA and PLOT) within the project folder.
QC/, storing Quality Control related plots; DATA/, saving data in RData format; PLOT/, storing output plots.
This function also returns a list object (e.g. analysis.par
in the demo) with directory information wrapped inside.
This list is an essential for driver construction step, all the important intermediate data generated later will be wrapped inside.
Returns a list object, containing main.dir (path of the main working directory), project.name (project name), out.dir (path of the project folder, which contains three subfolders), out.dir.QC, out.dir.DATA and out.dir.PLOT.
## Not run:
network.dir <- sprintf('%s/demo1/network/',system.file(package = "NetBID2")) # use demo
network.project.name <- 'project_2019-02-14' #
project_main_dir <- 'demo1/'
project_name <- 'driver_test'
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.