First, compiles the vectorized population spatial maps into a series of binary raster PNG files, which is the format that SLiM understands and uses it to define population boundaries. Then extracts the demographic model defined by the user (i.e. population divergences and gene flow events) into a series of tables which are later used by the built-in SLiM script to program the timing of simulation events.

compile(
populations,
model_dir,
generation_time,
resolution,
)
populations Object(s) of the spannr_pop class (multiple objects need to be specified in a list) Output directory for the model configuration files which will be loaded by the backend SLiM script Generation time (in model time units) How many distance units per pixel? Admixture events generated by the admixture function (either a list of data.frame objects in the format defined by the admixture function, or a single data.frame) Overwrite the contents of the output directory in case it already exists?