<p class="p6">As of SLiM 2.1, this method changes the tick and cycle counters to the tick and cycle read from the file.<span class="Apple-converted-space"> </span>If you do not want these counters to be changed, you can change them back after reading, by setting <span class="s1">community.tick</span> and <span class="s1">sim.cycle</span> to whatever values you wish.<span class="Apple-converted-space"> </span>Note that restoring a saved past state and running forward again will not yield the same simulation results, because the random number generator’s state will not be the same; to ensure reproducibility from a given time point, <span class="s1">setSeed()</span> can be used to establish a new seed value.<span class="Apple-converted-space"> </span>Any changes made to structure of the species (mutation types, genomic element types, etc.) will not be wiped and re-established by <span class="s1">readFromPopulationFile()</span>; this method loads only the population’s state, not the species configuration, so care should be taken to ensure that the species structure meshes coherently with the loaded data.<span class="Apple-converted-space"> </span>Indeed, state such as the selfing and cloning rates of subpopulations, values set into <span class="s1">tag</span> properties, and values set onto objects with <span class="s1">setValue()</span> will also be lost, since it is not saved out by <span class="s1">outputFull()</span>.<span class="Apple-converted-space"> </span>Only information saved by <span class="s1">outputFull()</span> will be restored; all other state associated with the species – subpopulations, individuals, haplosomes, mutations, and substitutions – will be lost, and should be re-established by the model if it is still needed.</p>
0 commit comments