Yes sure ! The slim scripts are attached and this is the script I used for the recapitation:
genmean = np.nanmean(pyslim.individual_ages_at(orig_ts,0))
recap_ts = pyslim.recapitate(orig_ts,recombination_rate=1e-9, ancestral_Ne=5000, random_seed=42)
ts = msprime.sim_mutations(
recap_ts,
rate=(1e-8)/genmean,
model=msprime.SLiMMutationModel(type=0),
keep=True)
sum([t.num_roots == 1 for t in ts.trees()])
print(f"The tree sequence now has {ts.num_mutations} mutations,\n"
f"and mean pairwise nucleotide diversity is {ts.diversity():0.3e}.")
I must also add, that each time I have been trying to recapitate a model with 10,000 I've observed decreasing pi over time. So I though it could come from a wrong Ne input. To have an idea of the actual Ne, I ran simulations with neutral mutations in SLiM and fount a Ne of about 800. But even with recapitating with Ne=800 I obtained a decreasing pi with time (even if the pi was already lower than what I observed with the 500,000 burin-in (and the 500,000 had a stable-ish pi)). So I guess there is a bug somewhere that I can't see...
Thank you !
PS: I said 5,000,000 burn-in in my previous message, it is actually 500,000.