Skip to content

Major refactoring: actual compartmental models #147

@ArtPoon

Description

@ArtPoon

The way that twt is currently set up, it can only simulate S->I dynamics because the conversion of susceptible to infected individuals is hard-coded into each CompartmentType/Deme. This was not a great design decision on my part. I am currently revising the object classes in the renaming branch as follows:

  • Compartment restores the conventional meaning of the term - it represents a variable in a dynamic model, i.e., a population of individuals sharing attributes in common such as transmission rates. A Compartment can now represent a population of susceptible (uninfected) individuals.
  • Host is an individual member of a Compartment population that contains one or more sampled Pathogen lineages. We want to relate Hosts with an outer tree (i.e., transmission tree/graph). It should be possible for a Host to be infected more than once.
  • Pathogen is a sampled lineage that we want to relate by the inner tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions