Giter VIP home page Giter VIP logo

covid-setup's Introduction

COVID19 Setup

Setup a COVID19 simulation for the JHU pipeline.

Requirements

We assume you have Python 3.6 or greater and docker.

Next, you'll need to make some changes to the config.yml.template. First create a copy named config.yml.

cp config.yml.template config.yml

Then you'll need at least to edit where you see things between << >>.

After you have this setup, then you can run the following commands:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Create the makefile
python3 render.py makefile -c config.yml -o Makefile

# Get the necessary shapefiles
python3 render.py shapefile -c config.yml --use-cache

# Build the docker file
cd docker
docker build -t covid .
cd ..

# Make the output directory
mkdir output

# Run the model
docker run --rm \
  -v "$(pwd)/config.yml:/home/app/covidsp/config.yml" \
  -v "$(pwd)/output:/home/app/covidsp/final_model_output" \
  -v "$(pwd)/data:/home/app/covidsp/data" \
  -v "$(pwd)/Makefile:/home/app/covidsp/Makefile" \
  covid

After everything is finished, you should find a file whose name looks like output.*.tar.gz in your output folder. This contains all the simulated output from the above command.

The easiest thing to do with this is to open up hospitalization_plots.ipynb in a jupyter (Python) notebook and hit Restart and Run All, which will generate several plots.

In future runs, you can just execute the last line after switching up the config.yml.

TODO

Figure out why our input rebuild script doesn't produce the same output as their input rebuild script.

covid-setup's People

Contributors

khwilson avatar

Watchers

James Cloos avatar

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.