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 functions to add mutations to populations. #764

Merged
merged 1 commit into from Jun 14, 2021
Merged

Conversation

molpopgen
Copy link
Owner

@molpopgen molpopgen commented Jun 10, 2021

  • Pop must have ancestry. Should this be true for new singletons? -> Yes (for now, at least)
  • If we cannot satisfy the number of descendants, error out. This will be tricky to test -> return None.
  • Allow to specify which deme the mutation is in. If -1, then any number of valid descendants will be accepted.
  • Update many of the data structures: mutations, mcounts, and mut_lookup at the very least. The tables and genomes, too.
  • Make new Python class and function
  • tests
  • doc string
  • Test error when trying to run during simulation
  • license headers in new files
  • add test of evolve forwards in time then add.
  • document that individual genetic values are not updated

@molpopgen molpopgen marked this pull request as draft June 10, 2021 19:48
Add class fwdpy11.NewMutationData.
@molpopgen molpopgen marked this pull request as ready for review June 14, 2021 13:24
@molpopgen molpopgen merged commit 1b946d4 into dev Jun 14, 2021
@molpopgen molpopgen deleted the adding_mutations branch June 14, 2021 13:24
molpopgen added a commit that referenced this pull request Jun 14, 2021
* Add copy/deepcopy to DiploidPopulation

* Update DiploidPopulation docstring.

* Update change log (and fix missing link to #764).
molpopgen added a commit that referenced this pull request Jul 5, 2021
Add ability to drop mutations onto populations with existing ancestry.
molpopgen added a commit that referenced this pull request Jul 5, 2021
* Add copy/deepcopy to DiploidPopulation

* Update DiploidPopulation docstring.

* Update change log (and fix missing link to #764).
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

Successfully merging this pull request may close these issues.

None yet

1 participant