Function to simulate a breeding program based on a JSON-file from MoBPSweb
json.simulation(
file = NULL,
log = NULL,
total = NULL,
fast.mode = FALSE,
progress.bars = FALSE,
size.scaling = NULL,
rep.max = 1,
verbose = TRUE,
miraculix.cores = NULL,
miraculix.chol = NULL,
skip.population = FALSE,
time.check = FALSE,
time.max = 7200,
export.population = FALSE,
export.gen = NULL,
export.timepoint = NULL,
fixed.generation.order = NULL
)
Path to a json-file generated by the user-interface
Provide Path where to write a log-file of your simulation (or false to not write a log-file)
Json-file imported via jsonlite::read_json
Set to TRUE work on a small genome with few markers
Set to TRUE to display progress bars
Scale the size of nodes by this factor (especially for testing smaller examples)
Maximum number of repeats to use in fast.mode
Set to FALSE to not display any prints
Number of cores used in miraculix applications (default: 1)
Set to FALSE to manually deactive the use of miraculix for any cholesky decompostion even though miraculix is actived
Set to TRUE to not execute breeding actions (only cost/time estimation will be performed)
Set to TRUE to automatically check simulation run-time before executing breeding actions
Maximum length of the simulation in seconds when time.check is active
Path were to export the population to (at state selected in export.gen/timepoint)
Last generation to simulate before exporting population to file
Last timepoint to simulate before exporting population to file
Vector containing the order of cohorts to generate (Advanced // Testing Parameter!)
Population-list
# NOT RUN {
data(ex_json)
# }
# NOT RUN {
population <- json.simulation(total=ex_json)
# }
Run the code above in your browser using DataLab