Hello,
I hope you're doing well. I’m currently working on a simulation project using SLiM and would like to incorporate a realistic demographic model. I have a demographic history defined in a .yaml file following the demes format, and I was wondering if it's possible to use this directly in SLiM.
Could you let me know if SLiM supports importing demes-formatted files, either directly or through a conversion tool or script? If not, what would be the best way to convert such a model into something SLiM can use?
I've been exploring demes-slim, but according to the documentation, this method is currently unavailable and not recommended for use.
Thank you in advance for your help!
Best regards,
Rodolfo
Yep! At first, I tried something similar: I converted the Demes file into an 'msprime' model and then used 'pyslim' to turn it into a .trees file. However, I’m planning to introduce selection in my simulations, and as far as I know, msprime only supports neutral simulations. That’s why I’m looking for an alternative that would allow me to use the model directly in SLiM without having to go through msprime first. I’m going to take a look at the 'slendr' package to see if it might be suitable for my purposes. Hopefully it is! Thanks!
Best,
Rodolfo