In [1]:
import sys
sys.path.append('../src')
from popgen import *
%matplotlib inline
In [2]:
m = Bottleneck(gens=100)
m.bgen = 50
m.start_size = 2000
m.end_size = [50, 100, 250, 750]
m.num_msats = 20
BasicView(m, [ExpHe(), ObsHe(), NumAlleles()], ['mean'], with_model=True)
m.run()
In [3]:
m = Bottleneck(gens=20)
m.bgen = 10
m.start_size = 10
m.end_size = 1000
m.num_msats = 200
BasicView(m, [ExpHe(), ObsHe(), LDNe()], with_model=True)
m.run()
In [ ]:
m = Bottleneck(gens=100)
m.bgen = 50
m.start_size = 100
m.end_size = 1000
m.num_msats = 20
BasicView(m, [ExpHe(), LDNe()])
m.run()
In [ ]:
m = Bottleneck(gens=20)
m.bgen = 10
m.num_msats = 100
m.start_size = 200
m.end_size = 50
m.sample_size = [10, 20, 50]
BasicView(m, [LDNe()], max_y=[m.start_size * 3])
m.run()
In [ ]:
m = Bottleneck(gens=20)
m.bgen = 10
m.start_size = 500
m.end_size = [400, 50]
m.sample_size = 50
m.num_stats = 50
BasicView(m, [ExpHe(), LDNe()], max_y=[None, m.start_size * 2])
m.run()
In [ ]:
m = Bottleneck(gens=20)
m.bgen = 10
m.start_size = 100
m.end_size = 50
m.num_msats = [10, 20, 50]
BasicView(m, [ExpHe(), LDNe()], max_y=[None, m.start_size * 2])
m.run()
In [ ]: