error in reading pyslim burnin trees file in SLiM 5.0

8 views
Skip to first unread message

John Michael Basaca

unread,
Aug 12, 2025, 3:26:17 AMAug 12
to slim-discuss
Hello! I was wondering how to remedy the error when loading the pyslim generated burnin trees file under SLiM 5.0? Specifically, the error "ERROR (Species::ReadTreeSequenceMetadata): the version of this file appears to be too old to be read, or the file is corrupted; you can try using pyslim to bring an old file version forward to the current version, or generate a new file with the current version of SLiM or pyslim" appears when reaching the in sim.readFromPopulationFile() of the slim script. I figured out this must be something to do with the SLiM version because I was able to successfully run the same script in my laptop which has the SLiM v4.3 installed, but was not able to successfully run it in an HPC which has the v5.0 installed. Looking forward to your guidance on this matter.

Sincerely,

JM

Peter Ralph

unread,
Aug 12, 2025, 6:03:30 AMAug 12
to John Michael Basaca, slim-discuss
IIUC, you've generated a tree sequence entirely in python (e.g., by doing msprime + pyslim.annotate()), and then want to load it into SLiMv5. To do this, use the next version of pyslim (currently in beta): https://pypi.org/project/pyslim/1.1b1/; AFAIK there are no issues and I'm going to do a real release in the next few days. And please report any issues you encounter!

Happy slimulating,
--peter

From: slim-d...@googlegroups.com <slim-d...@googlegroups.com> on behalf of John Michael Basaca <john....@gmail.com>
Sent: Tuesday, August 12, 2025 12:26 AM
To: slim-discuss <slim-d...@googlegroups.com>
Subject: error in reading pyslim burnin trees file in SLiM 5.0
 
Hello! I was wondering how to remedy the error when loading the pyslim generated burnin trees file under SLiM 5.0? Specifically, the error "ERROR (Species::ReadTreeSequenceMetadata): the version of this file appears to be too old to be read, or the file is corrupted; you can try using pyslim to bring an old file version forward to the current version, or generate a new file with the current version of SLiM or pyslim" appears when reaching the in sim.readFromPopulationFile() of the slim script. I figured out this must be something to do with the SLiM version because I was able to successfully run the same script in my laptop which has the SLiM v4.3 installed, but was not able to successfully run it in an HPC which has the v5.0 installed. Looking forward to your guidance on this matter.

Sincerely,

JM

--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to the Google Groups "slim-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slim-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/slim-discuss/42b38238-4849-4e7b-b07f-f91005217d09n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages