Skip to content

Commit

Permalink
add upper bounds for admix models
Browse files Browse the repository at this point in the history
For 3D admixture models, the f parameter was not correctly bounded with an upper limit of 1. This fixes the issue.
  • Loading branch information
dportik committed Jun 24, 2022
1 parent 8c16a3b commit 6c9a3d9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Three_Population_Pipeline/dadi_Run_3D_Set.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,17 @@

############# Admixed ("hybrid") origins models

up = [20, 20, 20, 10, 10, 0.999]
ps = [1, 1, 1, 1, 1, 0.5]
Optimize_Functions.Optimize_Routine(fs, pts, prefix, "admix_origin_no_mig", Models_3D.admix_origin_no_mig, rounds, 6, fs_folded=fs_folded,
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, T1, T2, f")
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, T1, T2, f", in_upper=up, in_params=ps)

up = [20, 20, 20, 20, 20, 10, 10, 0.999]
ps = [1, 1, 1, 1, 1, 1, 1, 0.5]
Optimize_Functions.Optimize_Routine(fs, pts, prefix, "admix_origin_sym_mig_adj", Models_3D.admix_origin_sym_mig_adj, rounds, 8, fs_folded=fs_folded,
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, m1, m3, T1, T2, f")
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, m1, m3, T1, T2, f", in_upper=up, in_params=ps)

up = [20, 20, 20, 20, 20, 10, 10, 0.999]
ps = [1, 1, 1, 1, 1, 1, 1, 0.5]
Optimize_Functions.Optimize_Routine(fs, pts, prefix, "admix_origin_uni_mig_adj", Models_3D.admix_origin_uni_mig_adj, rounds, 8, fs_folded=fs_folded,
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, m32, m31, T1, T2, f")
reps=reps, maxiters=maxiters, folds=folds, param_labels = "nu1, nu2, nu3, m32, m31, T1, T2, f", in_upper=up, in_params=ps)

0 comments on commit 6c9a3d9

Please sign in to comment.