Fix sim.arg crash at high rho - #183
Open
WongDWai wants to merge 8 commits into
Open
Conversation
…inguish individuals; recombination parent lineages inherit source pathogen id, coalescent inherits a child's id. do.infection counts unique carrier.id for rhyper().
… to distinguish individuals; recombination parent lineages inherit source pathogen id, coalescent inherits a child's id. do.infection counts unique carrier.id for rhyper()." This reverts commit 3a33bed.
…d earlier carrier.id because I don't think it was modelled in a biologically accurate way.
…a fixed pool of p.size lineages (a proportion of which are currently active), only activating a previously-inactive one when chosen. Total pool size never changes.
Contributor
|
If one or more active lineages are transferred out of the Host by a superinfection event, they need to be instantaneously replaced by inactive lineages to the set effective population size, as we continue to follow that host backwards in time. Otherwise superinfections will deplete the pool |
Contributor
|
Explicitly storing a list of Pathogen objects to the effective population size for every Host object results in too many objects, I think. Pathogen objects were meant to be used for active (sampled) lineages only. It should be possible to store the same kind of information without creating so many objects. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issue #182