Closed agladstein closed 5 years ago
When you use the num_replicates
option you get back an iterator over many tree sequences. You'll need to do something like
reps = msprime.simulate(stuff...)
for j, ts in enumrate(reps):
tszip.compress(ts, f"simulation_{j}.trees.tsz")
oooh... I misunderstood. I thought I was going to be able to put multiple replicates in one file. So, that functionality doesn't exist right? I could just compress, and then make a tar ball?
oooh... I misunderstood. I thought I was going to be able to put multiple replicates in one file. So, that functionality doesn't exist right? I could just compress, and then make a tar ball?
No, there's no functionality to compress lots of replicates into one file. The way to do that would be to make a tarball of the compressed files (but, unless there thousands of them, is there much point?)
Just to keep simulation files more organized and reduce the number of files.
I'm getting an error from my simulation code: