Hi,
I am using SLiM and pyslim+msprime (for recapitation) for simulating
whole human genomes. I want to apply msprime independently to smaller
chuncks of genome (e.g. chromosome arms) and wanted to use
keep_interval() as suggested by Peter Ralph
(
https://groups.google.com/forum/#!topic/slim-discuss/UIwmOPuv9Ww).
However, I am not sure I am doing it right, the resulting tree sequence
seems to be of the same size of the original sequence:
>>> import msprime
>>> tree_sequence = msprime.simulate(sample_size=6, length=50e3, Ne=1000)
>>> tree_sequence.sequence_length
50000.0
>>> tree_sequence.keep_intervals(np.array([[0,10]])).sequence_length
50000.0
Shouldn't this give me a sequence length of 10?
I am using
Python 3.6.9
tskit 0.2.3
--
Miguel NAVASCUÉS
UMR CBGP, INRAE
Centre de Biologie pour la Gestion des Populations
755 avenue du campus Agropolis
CS30016
34988 Montferrier-sur-Lez cedex (France)
phone:
+33499623370
fax:
+33499623345
e-mail: miguel.navascues AT
inrae.fr