ashander / ftprime

Forward-time simulation of the msprime data structure (for development)
2 stars 1 forks source link

Add recombination map to initial ts in examples #49

Open ashander opened 6 years ago

ashander commented 6 years ago

raised in #48

hyanwong commented 6 years ago

Also (importantly) need to add Ne

ashander commented 6 years ago

👍

On Thu, Nov 2, 2017 at 2:35 PM, Yan Wong notifications@github.com wrote:

Also (importantly) need to add Ne

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ashander/ftprime/issues/49#issuecomment-341565357, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfLOGkfYI4TNwNrAaeT2cD8KkHESsm0ks5syjWggaJpZM4QOhFK .

hyanwong commented 6 years ago

E.g.

rcmb_map = msprime.RecombinationMap.uniform_map(length, recomb_rate, length)
init_ts = msprime.simulate(2*len(first_gen), Ne=popsize, recombination_map=rcmb_map)