Learn R Programming

DEVis (version 1.0.1)

create_dir_struct: Initialize the directory structure for automatically storing and structuring results.

Description

This function initializes and, if necessary, creates the directory structure for output of analysis based on a provided base directory. A /results/ folder will be created in the base directory containing a complete directory structure for all possible results that can be generated by this package. All visualizations and data aggregation tools rely on this directory structure for data output. Note that this function will NOT overwrite existing directories. Initialization of data directories should be performed separately using init_data_paths().

Usage

create_dir_struct(base_dir)

Arguments

base_dir

Base directory in which to build directory structure for result output.

Value

This function does not return a value.

See Also

init_data_paths, set_output_mode

Examples

Run this code
# NOT RUN {
#Initialize a DEVis directory structure at a base directory.
create_dir_struct(base_dir="/Users/adam/projects/ebola/")

This command will create the following folders:
/Users/adam/projects/ebola/
  /results/
    /DE/
      /boxplot/
      /counts/
      /data/
      /density_plots/
      /divergence/
      /heatmaps/
      /profile_plots/
      /series_plots/
      /volcano/
   /dendrograms/
   /geneplots/
   /group_stats/
   /MDS/
     /standard/
     /hulls/
   /sample_distance/
     /euclidian/
     /poisson/

# }

Run the code above in your browser using DataLab