Description Usage Arguments Value
View source: R/parametric_simulations.R
Replicate parametric simulations for power analyses
1 2 3 4 5 6 7 8 9 10 11 12 13 | parametric_simulations(
data_dir,
results_dir,
plot_dir,
plot_type = "tiff",
experiment_index = c(1, 2, 3, 4),
num_cores = 1,
m = 1000,
m.true = 100,
effect_sizes = 1:8,
n = 500,
num_sims = 50
)
|
data_dir |
Path to directory to store data |
results_dir |
Path to directory to store results |
plot_dir |
Path to directory to store plots |
plot_type |
Type of image to save plot |
experiment_index |
An integer in 1, 2, 3, or 4. 1 specifies phenotype affecting cell-type-specific methylation levels. 2 specifies the same as one but true positives also consider predicted direction. 3 specifies the phenotype being affected by cell-type-specific methylation levels. 4 is the same as 1 with smaller sample size |
num_cores |
Number of cores to use for analysis |
m |
Number CpGs to simulate |
m.true |
Number of true associations |
effect_sizes |
Vector of effect sizes to simulate |
n |
Sample size |
num_sims |
Number of simulations to run |
None (TODO: Return a list of results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.