@@ -124,11 +124,20 @@ def tsdate_cli_parser():
124124 type = float ,
125125 default = core .DEFAULT_EPSILON ,
126126 help = (
127- "Specify minimum distance separating time points. Also "
128- "specifies the error factor in time difference calculations. "
127+ "Specify the error factor in time difference calculations. "
129128 f"Default: { core .DEFAULT_EPSILON } "
130129 ),
131130 )
131+ parser .add_argument (
132+ "-b" ,
133+ "--min-branch-length" ,
134+ type = float ,
135+ default = core .DEFAULT_MIN_BRANCH_LENGTH ,
136+ help = (
137+ "Specify the minimum difference in age between parent and child nodes. "
138+ f"Default: { core .DEFAULT_MIN_BRANCH_LENGTH } "
139+ ),
140+ )
132141 parser .add_argument (
133142 "--method" ,
134143 choices = ["inside_outside" , "maximization" , "variational_gamma" ],
@@ -169,7 +178,7 @@ def tsdate_cli_parser():
169178 ),
170179 default = None ,
171180 )
172- # TODO array specification from file?
181+ # arguments for discrete time methods
173182 parser .add_argument (
174183 "-n" ,
175184 "--population_size" ,
@@ -283,7 +292,7 @@ def run_date(args):
283292 params = dict (
284293 recombination_rate = args .recombination_rate ,
285294 method = args .method ,
286- eps = args .epsilon ,
295+ min_branch_length = args .min_branch_length ,
287296 progress = args .progress ,
288297 max_iterations = args .max_iterations ,
289298 rescaling_intervals = args .rescaling_intervals ,
@@ -299,6 +308,7 @@ def run_date(args):
299308 population_size = args .population_size ,
300309 recombination_rate = args .recombination_rate ,
301310 method = args .method ,
311+ min_branch_length = args .min_branch_length ,
302312 eps = args .epsilon ,
303313 progress = args .progress ,
304314 probability_space = args .probability_space ,
0 commit comments