View source: R/simulate_data.R
create.data.simulation | R Documentation |
This function uses a feature and metadata table as well as specific parameters to create simulated metagenomic samples and stores those in the indicated .h5 file
create.data.simulation(feat, meta, sim.location,
sim.method='resampling',
sim.type="cross-section",
filt.params=list(prev.cutoff=0.05, ab.cutoff=1e-04, log.n0=1e-05),
sim.params=list(class.balance=0.5, prop.markers=0.1, conf = 'None',
ab.scale=c(1.0, 1.25, 1.5, 2.0, 5.0, 10.0, 20.0),
prev.scale=c(0.0, 0.1, 0.2, 0.3),
repeats=100, feature.type='all'))
feat |
feature matrix, can be either a single matrix or a list of matrices from different studies |
meta |
metadata about samples in the features matrix, should be a dataframe or a list of dataframes |
sim.location |
filename for an .h5 file which will store the simulations, original data, and simulation parameters |
sim.method |
methodology to create the simulations. Can either be
a string describing a pre-implemented method or a user-specified function
(see Details below). Defaults to |
sim.type |
character, can be either |
filt.params |
list of parameters for data filtering, defaults
to |
sim.params |
list of parameters which are given to
the |
This functions TODO
Filtering Pre-implemented Simulations Simulations h5-File Organisation
Does not return anything but instead creates an h5 file containing simulated samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.