sim_wrapper: Wrapper that performs simulation and process the results

Description Usage Arguments

View source: R/consensus_cutoff.R

Description

The function calls the sim_all_parents_main_off function and saves the result to a folder together with a file that contains a description of the simulation parameters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sim_wrapper(
  output_dir,
  file_name,
  size_start = 100,
  size_stop = 10000,
  size_step = 100,
  pl = 9,
  phi = (1/50),
  repeats = 1000,
  verbose = FALSE,
  ncpu = 8
)

Arguments

output_dir

The output directory where the simulation result must be placed

file_name

The name of the output file in which the results will be stored. Must end in .csv.

size_start

The smallest bin size to simulate

size_stop

The largest bin size to simulate

size_step

The size of the steps to take to reach the largest bin size

pl

PID length (9)

phi

Sequencing read error rate (1/50)

repeats

The number of repeats to run for each bin size

ncpu

Number of cores to use for simulation

vebose

If TRUE print loop progress


philliplab/MotifBinner2 documentation built on Sept. 8, 2020, 12:09 a.m.