Description Usage Arguments Value
View source: R/sim_proc_many_pops.R
Simulate and process many populations
1 2 3 4 5 6 7 8 9 10 | sim_proc_many_pops(
arg_collection,
n_sims = 1,
output_dmat = FALSE,
max_dmat_size = 10000,
fitness_processing = "none",
n_gen_with_perfect_fitness = 4,
output_genealogy = "none",
verbose = FALSE
)
|
arg_collection |
The collection of argument sets to be used in the simulations |
n_sims |
The number of times sim_pop must be called for each arg_set.
The total number of data sets produced will be |
output_dmat |
If TRUE, the distance matrices will be included in the output. Uses lots of memory - default is FALSE. |
max_dmat_size |
If more sequences than this number is present in a
last generation on which a distance matrix is about to be computed, then
|
fitness_processing |
The way that the fitness scores should be used to sample from the genealogy. Valid options include:
|
n_gen_with_perfect_fitness |
The number of initial generations that must be assigned perfect fitness. If an early ancestor has low fitness and is thus removed, the likelihood that the end up with an empty genealogy is too large. |
output_genealogy |
Should the genealogy be output? Valid options include: 'none', 'last_gen_only', and 'full'. |
verbose |
If TRUE, progress is printed to STDOUT. |
A list with the following elements:
dcollection
: A dcollection
as checked by check_dcollection
arg_collection
: The input arg_collection
as checked by
check_arg_collection
.
all_genealogies
[OPTIONAL]: A data.frame
that contains all the
genealogies, or in the case that last_gen_only
was specified, only the
last generations of the genealogies and all the identifier columns.
all_dmats
[OPTIONAL]: A list of lists containing the
distance matrixes and their indentifiers.
n_sims
: The input n_sims
indicating the number of
datasets you can expect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.