https://github.com/alan-turing-institute/vivarium_population_spenser

Vivarium microsimulation tools used to model population evolution with the SPENSER project

https://github.com/alan-turing-institute/vivarium_population_spenser

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 30 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    17 of 26 committers (65.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary

Keywords

hacktoberfest hut23 hut23-238
Last synced: 11 months ago · JSON representation

Repository

Vivarium microsimulation tools used to model population evolution with the SPENSER project

Basic Info
  • Host: GitHub
  • Owner: alan-turing-institute
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 69.7 MB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • Open Issues: 4
  • Releases: 0
Fork of ihmeuw/vivarium_public_health
Topics
hacktoberfest hut23 hut23-238
Created about 6 years ago · Last pushed over 5 years ago
Metadata Files
Readme License

README.md

Vivarium Population Spenser

Welcome to the Vivarium Population Spenser repository.

This library is used by Daedalous spatial microsimulation pipeline that allows users to produce (custom) population projections for the whole of the United Kingdom at the local authority (LA) level.

This library is being developed in collaboration between Leeds Institute for Institute Data Analytics and the Alan Turing Institute as part of the SPENSER (Synthetic Population Estimation and Scenario Projection Model) project.

This library is largely based in the vivarium_public_health library, but it has been modified to cater for the needs of the SPENSER project.

Installation

To install the Vivarium Population Spenser library follow the next steps:

> git clone https://github.com/alan-turing-institute/vivarium_population_spenser.git

> cd vivarium_population_spenser

> python install .

If you plan to run the microsimulation using this library we recommend it to run if from the Daedalous pipeline that contains many useful scripts to interact with this library.

Documentation

The Vivarium Population Spenser library contains 6 main components used to simulate the evolution of an input population. You can find all the computational workflow protocols of all of these components in here.

There components are the following:

Population

The Spenser Population component is used define the starting point of the simulation from an input population (input_population) to be used in the microsimulation. It creates a dataframe with following fields:

population = pd.DataFrame( {'age': input_population['age'], 'entrance_time': creation_time, 'sex': input_population['sex'], 'alive': pd.Series('alive', index=index), 'location': input_population['location'], 'ethnicity': input_population['ethnicity'], 'exit_time': pd.NaT, 'MSOA': input_population['MSOA']}, index=index)

where creation_time is the starting time of the simulation.

Mortality:

The mortality module contains tools modeling all cause mortality based on individuals characteristics as gender, age, location (local authority level) and ethnicity.

This module uses as input table to establish the morality rates the table Mortality2011LEEDS12.csv.

Details about the computational workflow protocol followed by this component can be found here: dx.doi.org/10.17504/protocols.io.bn79mhr6

Fertility:

A model of fertility based on individual characteristics as, age, location (local authority level) and ethnicity.

This module uses as input table to establish the morality rates the table Fertility2011LEEDS12.csv.

Details about the computational workflow protocol followed by this component can be found here: dx.doi.org/10.17504/protocols.io.bn8bmhsn

Emigration:

This module models emigration based on individuals characteristics as gender, age, location (local authority level) and ethnicity.

This module uses as input table to establish the morality rates the table Emig20112012_LEEDS2.csv.

Details about the computational workflow protocol followed by this component can be found here: dx.doi.org/10.17504/protocols.io.bn8emhte.

Immigration

A deterministic immigration model in which the total number of immigrants is read from a file level and the characteristics of the immigrants are sampled from the migration rate file.

The immigrants are assigned to a local authority and then based on their age and gender to an MSOA.

The input table to establish the total number of immigrants and their characteristics Immig20112012_LEEDS2.csv

The input table to assigned them an MSOA ImmigrationMSOAM_F.csv.

Details about the computational workflow protocol followed by this component can be found here: dx.doi.org/10.17504/protocols.io.bn9dmh26

Internal migration

This module models the internal_migration between MSOAs (and their respective LADs) of individuals based on their gender, age, initial location (local authority level) and ethnicity.

The input table to establish the pool of migrants that internally migrate based on their characteristics is InternalOutmig2011_LEEDS2.csv.

Once the pool of migrants is chosen they are assigned to a new MSOA based on their age and gender using the MSOA migration matrices in od_matrices.

Details about the computational workflow protocol followed by this component can be found here: dx.doi.org/10.17504/protocols.io.bn9imh4e

Note:

For details of how all the tables were produced, please contact Nik Lomax and Luke Archer.

Owner

  • Name: The Alan Turing Institute
  • Login: alan-turing-institute
  • Kind: organization
  • Email: info@turing.ac.uk

The UK's national institute for data science and artificial intelligence.

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 2,135
  • Total Committers: 26
  • Avg Commits per committer: 82.115
  • Development Distribution Score (DDS): 0.737
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
James Collins c****k@u****u 562
emumford e****d@u****u 508
Kate Wilson k****7@u****u 287
Alec Deason a****d@u****u 247
Michelle Park h****3@u****u 137
Cody c****t@u****u 133
crangelsmith c****h@g****m 101
kasra-hosseini k****i@t****k 54
Rob Moss r****v@g****m 24
A. Flaxman a****e@a****u 16
Kate Wilson 3****n 10
pandersen13 5****3 10
eeldren e****n@u****u 7
Michelle Park h****p@g****m 6
kwilson7 k****1@g****m 6
Abraham Flaxman a****e@u****u 6
krosett U****t@u****u 4
kjells k****s@u****u 3
Rajan Mudambi 1****i 3
Alec Deason a****d@c****u 2
Zachary Dingels d****z@u****u 2
zrankin z****n@u****u 2
Benjamin Wilson m****a@l****k 2
Zachary Dingels d****z@c****u 1
Cody Horst c****2@g****m 1
camagallen c****a@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 2 years ago

All Time
  • Total issues: 37
  • Total pull requests: 29
  • Average time to close issues: 29 days
  • Average time to close pull requests: 4 days
  • Total issue authors: 4
  • Total pull request authors: 3
  • Average comments per issue: 0.89
  • Average comments per pull request: 0.83
  • Merged pull requests: 25
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • crangelsmith (29)
  • kasra-hosseini (5)
  • BenjaminIsaac0111 (2)
  • glederrey (1)
Pull Request Authors
  • crangelsmith (17)
  • kasra-hosseini (10)
  • BenjaminIsaac0111 (2)
Top Labels
Issue Labels
enhancement (2) bug (1)
Pull Request Labels