Description Usage Arguments Value Examples
Apply simulation_model
to the rows of the matrix parameter
either
sequentially or in parallel (depends on ncore
).
1 2 3 |
parameter |
A matrix of type numeric. Each row correspond to the arguments
in |
simulation_model |
A function or a character designing the |
empirical_fl |
A matrix corresponding to an empirical fitness landscape. The first ncol-1 columns correspond to a genotype table. The rows correspond to different genotypes and the columns to the mutations that are considered for these genotypes. A genotype (at a certain row) has a given mutation when there is a 1 in the corresponding column. The column to of empirical_fl correspond to the fitness of each genotype. Only the fitness of the wt (i.e. the row in the genotype table with only zeros) is used. |
ncore |
A natural number. Number of cores used for the simulations. If
|
file_output |
Full path to the output file for the simulations. If NULL no output file is created. |
multi_file |
Logical. Applies only if |
fun_args |
List of argument for a given
|
output_args |
List of arguments which will be passed to |
... |
Extra arguments which will be passed to |
A list of three elements. The first element is the matrix of parameter
.
If some parameters are unnamed, all the parameters are renamed to P1, P2...
The second element is the matrix of simulations, in which each row is the result
of simulation_model
applied on the corresponding row in parameter
. The
columns of this matrix are named S1, S2...
The third element is the output of system.time
for the total simulation
process.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.