-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial: generating parameters from priors in msprime #42
Comments
Hi Jerome, yes, I have some code that does this and I'd be happy to put up something on the tutorial somewhere. (perhaps while I do this general revamp of the tutorial) -- happy to be assigned to this task. There's a simple and a complicated case to consider here. The simple case is when all the priors are independent of each other -- then this is fairly easy. In practice though, most parameters in demographic models will have some dependencies and the priors are represented by a DAG. For example, if a source population is 'created' by a MassMigration event from a destination population at some time, any other demographic times relating to the history of this source population must be later than this time. In my own code, I've found it useful to create some checks of consistency before I run a simulation with the parameters. |
Btw - we have enough documentation-related tasks that it might be worth opening a Project to collate them all, I think? I don't know how far the msprime 2.0 paper is from publication, but I think it would be wonderful to have shiny new docs ready for this occasion ✨ |
I think we can just start with the simple version. |
Great, thanks @gtsambos and @agladstein --- can you coordinate with each other on this please? We'll want the simple version definitely, and if the complicated version is generally useful and won't take up too much space then that sounds good too. Good call on the project, I've made it "1.0 Documentation". |
This sounds like a topic much more suited to the "tskit tutorials" site. See proposal here: #10 Shall we migrate this issue to the "tutorials" repo? |
Assuming https://github.com/tskit-dev/tutorials is also for msprime tutorials, then yes! |
Transferred from msprime. This would be a good tutorial. |
People often need to run simulations with parameters drawn from some distribution. Add a simple example of this to the tutorial. Include an example where we draw times from a distribution and we sort the list by time after generation to ensure they're in the right order.
Pinging @gtsambos (@agladstein mentioned you were interested in this)
The text was updated successfully, but these errors were encountered: