compare_runtimes: Compare method runtimes across various input sizes

Description Usage Arguments Value

View source: R/runtime_comparison.r

Description

Compare method runtimes across various input sizes

Usage

1
2
3
4
5
6
7
8
9
compare_runtimes(
  sample.sizes,
  number.sites,
  methods,
  method.names,
  number.replications,
  number.cell.types,
  random_seed
)

Arguments

sample.sizes

Numeric vector for sample sizes to simulate.

number.sites

Numeric vector for number of features/sites to simulate.

methods

Character vector of method wrapper names to benchmark. Examples of wrappers (tca.mle, tca.gmm, celldmc) are above. They must have the same input arguments. Function names must match to be called correctly.

method.names

Pretty names of those listed in methods argument for plotting

number.replications

Integer indicating how many replications of each experiment to run. Same input is run for each replicate. This is meant to account for variability in runtime due to the system we are running on.

number.cell.types

Integer indicating number of cell types to simulate.

random_seed

Integer to set seed for simulation to ensure replicability

Value

A list of dataframes. First dataframe with columns indicating the method, replicate number, sample size, number of sites, number of sources, and total runtime for each experiment. Second dataframe summarizes replicates.


cozygene/CellTypeSpecificMethylationAnalysis documentation built on Jan. 28, 2022, 11:20 a.m.