Skip to content
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

Add an option to add user-defined symbolic names to sampled individuals #114

Open
bodkan opened this issue Sep 19, 2022 · 0 comments
Open

Comments

@bodkan
Copy link
Owner

bodkan commented Sep 19, 2022

The way things are now, each sampled individual gets a nice symbolic name which can be used for all functions for tree sequence analyses.

This means that if we record an individual in population "ancientHG", individuals sampled from this population will be named "ancientHG_1", "ancientHG_2", etc. This information, along with sampling times and -- optionally -- locations of sampling are accessible via ts_samples(ts).

It would be nice to make sampling even more customizable. If the user wants to represent a concrete individual, they should be able to do things like schedule_sampling(model, times = 45000, list(eur, 1, "Ust-Ishim") and later refer to the Ust-Ishim individual in tree sequence calculations such as ts_f3(ts, "EUR_1", "Ust-Ishim", "AFR") etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant