treetime
treetime copied to clipboard
Reproducible Analysis
Is there a way to make analyses reproducible, perhaps by setting a random seed? Specifically, I'm using the run
function of the TreeTime
class to estimate a clock model.
I've tried:
random.seed(1234)
and
numpy.random.seed(1234)
but the results still change slightly each time.
Thanks!
Hmm. There are very few places where some stochastic behavior is expected (like placing mutations on the children of the root). Some variation might also come from rounding behavior, but on the same machine I'd expect these to be the same on every run. I am not sure whether any underlying optimization routine might use their own RNG.
Thanks for your reply! The variation I notice has been node dates (both joint and marginal). I'll play around with the parameters and see if I figure out anything more.