Coder Social home page Coder Social logo

numalariamodeling / covid-chicago Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 14.0 14.03 MB

Simulating and analyzing Covid-19 transmission and hospital trends per region in Illinois.

Home Page: https://illinoiscovid.org/

License: Apache License 2.0

Python 85.99% R 13.25% Dockerfile 0.12% Shell 0.46% Batchfile 0.18%
covid-19 modeling-and-simulation

covid-chicago's People

Contributors

arielchandler avatar arielleeagan avatar arthir avatar excenity avatar geickelb avatar jacksonlee-civis avatar jgerardin avatar jiayi-gu avatar kristynkro avatar kwalew avatar manuelarunge avatar msingam avatar natsumitsubo avatar patrickaclay avatar reeserich avatar tobias-holden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

covid-chicago's Issues

rerun contact matrix extractions for the other location-excel files

-add the updated python script for the extractions to the repo

  • excel files are located here \projects\covid_chicago\emod_sim\age_contact_matrices
    image.png
  • and the output of the extraction should be a csv file as in projects\covid_chicago\cms_sim\inputs contact_matrix_grp4.csv - adding the location to the csv filename
  • extract for US only
    the age groups are
    • 0-19
    • 20-39
    • 40-59
    • 60 to 100

and

  1. 0 to 9
  2. 10 to 19
  3. 20 to 29
  4. 30 to 39
  5. 40 to 49
  6. 50 to 59
  7. 60 to 69
  8. 70 +

calculate failure rate of sample runs per experiment

Could be a script in R or in python that reads in the scenarios.csv and the generated trajectories.csv files and counts the one that are missing - and exports it to a small txt file for easy access/review. Useful for larger simulation runs.

running NMH simulations

  • NMH catchment = catchment pop * market share
  • With varying Ki
  • using latest extended-cobey emodl
  • check if Ki * pop = 2.5e-7 * 2700000 = Ki_adjusted *NMHcatchment
  • ~KI adjusted ~ 2.9e-8

test Ki sampling approach

  • Ki to be sampled inside the generateParameterSamples or outside are currently done

Simulations Ki sampled outside the sampling function:

  • 20200405_mr_test_Cook_higherCrit_sameCFR_rn45
  • 20200405_mr_test_Cook_lowerCrit_lowerCFR_rn16

Corresponding simulations Ki sampled with others:

  • 20200405_mr_test_Cook_higherCrit_sameCFR_kiuniform_rn27
  • 20200405_Cook_higherCrit_sameCFR_kiuniform_rn96

comparison to dtk-tools CMS

To run the CMS model a python module setup exists in "dtk-tools: CMS".
However dtk-tools-CMS has been inactive for some time and the present workflow entails some features that are not included in dtk-tools, whereas the structure of dtk-tools is much more robust and thought-through. Ideally the best features of both approaches can be combined.

run CMS on Quest for multiple users

Currently the code is hardcoded for a single's user setup, to add:

  • run for other users using their custom path specifications in load_paths.py
  • adapt the shell submission script in the runScenarios.py files
  • run for the NU group members on the quest project folder (general setup)

On quest:
Each user to setup the required folder structure

Specify contact matrix to location of contacts

as done in the EMOD version, i.e.
contacts that happen at home, at school or at work, this will allow a finer specification of social distancing interventions, i.e. school closure (no contacts in schools but increased contact at home ?)

postprocessing age

the age model did run within seconds (15 trajectories in 6min), but the postprocessing needs debugging (again?)

suffix_names = [x.split('_')[1] for x in df.columns.values if 'susceptible' in x]

Since the column names include now two underscores should it be ?
suffix_names = [x.split('_age')[1] for x in df.columns.values if 'susceptible' in x]
But the suffix_names are empty.

constrain sampled parameter combinations to avoid count <1

Examples

  • Caught exception during execution: Count is less than 0 (P:-1)

  • Caught exception during execution: Count is less than 0 (E:-1)

  • therefore often less samples are succesfully producing trajectories.csv than are defined in the beginning

running age model

Run age model, adjust fitting parameters to get good fit per covidregion. generate relevant age plotters and compare to covid data per age.

restructure and cleanup simulation process

for example
workflow functions

  1. generate_and_run_scenarios.py
  2. postprocess_and_sample_plot.py

helper functions

  • load_paths.py
  • parameter_helpers.py
  • simulation_helpers.py
  • processing_helpers.py

or look at setup as managed in dtk-tools cms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.