Section 2 Replaying disequilibrium populations

The paper shows fine-grained replays for three replicates that were experiencing adaptive momentum (one that failed to cross, one that crossed one valley, and one that crossed two valleys).

Prior to these fine-grained replays, we replayed 24 populations at with less precision. We replayed every fourth generation with 1,000 replicates per replay (compared to 10,000 replicates for every generation in the fine-grained replays). Here we show all 24 coarse-grained replays.

The functions to generate the plots are not shown here. They can be viewed in /experiments/2024_03_18_01__replays/analysis

For each plot, the top subplot shows the potential to cross the first valley (orange line) and the second valley (yellow line). The background of the top subplot shows the expectation based on the position of the leading edge, as in the paper. The bottom subplot shows the state of the population at each generation of the original replicate.

2.1 Dependencies

# External
library(ggplot2)
library(dplyr)
library(cowplot)

base_repo_dir = '../..'
exp_dir = paste0(base_repo_dir, '/experiments/2024_03_18_01__replays/')

# Internal
source(paste0(base_repo_dir, '/global_shared_files/global_analysis_variables.R'))

2.2 Populations that did not cross

2.2.1 Seed 134

plot_replay_with_adjusted_benchmark('134')

2.2.2 Seed 158

plot_replay_with_adjusted_benchmark('158')

2.2.3 Seed 164

plot_replay_with_adjusted_benchmark('164')

2.2.4 Seed 175

plot_replay_with_adjusted_benchmark('175')

2.2.5 Seed 252

plot_replay_with_adjusted_benchmark('252')

2.2.6 Seed 339

Note that this is the seed in Figure 6 of the paper.

plot_replay_with_adjusted_benchmark('339')

2.2.7 Seed 365

plot_replay_with_adjusted_benchmark('365')

2.2.8 Seed 394

plot_replay_with_adjusted_benchmark('394')

2.2.9 Seed 446

plot_replay_with_adjusted_benchmark('446')

2.2.10 Seed 450

plot_replay_with_adjusted_benchmark('450')

2.3 Populations that crossed once

2.3.1 Seed 011

plot_replay_with_adjusted_benchmark('011')

2.3.2 Seed 050

plot_replay_with_adjusted_benchmark('050')

2.3.3 Seed 075

plot_replay_with_adjusted_benchmark('075')

2.3.4 Seed 083

plot_replay_with_adjusted_benchmark('083')

2.3.5 Seed 105

plot_replay_with_adjusted_benchmark('105')

2.3.6 Seed 282

plot_replay_with_adjusted_benchmark('282')

2.3.7 Seed 343

plot_replay_with_adjusted_benchmark('343')

2.3.8 Seed 400

Note that this is the seed in Figure 4 of the paper.

plot_replay_with_adjusted_benchmark('400')

2.3.9 Seed 408

plot_replay_with_adjusted_benchmark('408')

2.3.10 Seed 415

plot_replay_with_adjusted_benchmark('415')

2.4 Populations that crossed twice

2.4.1 Seed 093

plot_replay_with_adjusted_benchmark('093')

2.4.2 Seed 124

plot_replay_with_adjusted_benchmark('124')

2.4.3 Seed 138

plot_replay_with_adjusted_benchmark('138')

2.4.4 Seed 263

Note that this is the seed in Figure 5 of the paper.

plot_replay_with_adjusted_benchmark('263')