Skip to content

Commit

Permalink
Re-generate example data
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed May 13, 2024
1 parent 36e10ee commit 65ca97f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions inst/extdata/models/introgression/script.slim
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,10 @@ s0 late() /* Log the start of the simulation */ {
}

s1 late() /* Population splits */ {
pops = filter(POPULATIONS, "tsplit_gen", c(1, community.tick - BURNIN_LENGTH));
pops = filter(POPULATIONS, "tsplit_gen", community.tick - BURNIN_LENGTH);

for (i in seqLen(num_rows(pops))) {
pop = pops.getRowValues(i);
// skip over ancestral populations, who have been created in generation 1
if (community.tick > 1 & pop.getValue("tsplit_gen") == 1) next;
create_pop(pop);
}

Expand Down
Binary file modified inst/extdata/models/introgression_msprime.trees
Binary file not shown.
Binary file modified inst/extdata/models/introgression_slim.trees
Binary file not shown.
Binary file modified inst/extdata/models/msprime.trees
Binary file not shown.
4 changes: 1 addition & 3 deletions inst/scripts/script.slim
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,10 @@ s0 late() /* Log the start of the simulation */ {
}

s1 late() /* Population splits */ {
pops = filter(POPULATIONS, "tsplit_gen", c(1, community.tick - BURNIN_LENGTH));
pops = filter(POPULATIONS, "tsplit_gen", community.tick - BURNIN_LENGTH);

for (i in seqLen(num_rows(pops))) {
pop = pops.getRowValues(i);
// skip over ancestral populations, who have been created in generation 1
if (community.tick > 1 & pop.getValue("tsplit_gen") == 1) next;
create_pop(pop);
}

Expand Down

0 comments on commit 65ca97f

Please sign in to comment.