Skip to content

Instantly share code, notes, and snippets.

@vsbuffalo
Created February 10, 2021 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsbuffalo/a99a933b07b1d8bcf82bc38d00fb7efd to your computer and use it in GitHub Desktop.
Save vsbuffalo/a99a933b07b1d8bcf82bc38d00fb7efd to your computer and use it in GitHub Desktop.
initialize() {
initializeMutationRate(1e-8);
initializeMutationType("m1", 0.5, "f", 0.0);
initializeGenomicElementType("g1", m1, 1);
initializeGenomicElement(g1, 0, 99999);
initializeRecombinationRate(1e-8);
}
1 early() {
sim.addSubpop("p1", 100);
log = sim.createLogFile("log.tsv.gz", compress=T, sep="\t", logInterval=10);
log.addGeneration();
}
2000 late() {
sim.simulationFinished();
}
@petrelharp
Copy link

petrelharp commented Feb 10, 2021

I get

#ERROR (Eidos_WriteToFile): encountered zlib errors while writing to file at path log.tsv.gz.

Is this what happens to you?

@vsbuffalo
Copy link
Author

Yup, exactly. Thanks! I can submit an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment