Giter VIP home page Giter VIP logo

p-j-r / covid-19 Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 8.0 21.36 MB

Stochastic SIR models; adding age-structures and social contact data for the spread of covid-19. Lattice model for identifying and isolating hotspots. This has been further developed into a network(graph) of multiple clusters(lattices) and tracing the infection in such a population.

Home Page: https://p-j-r.github.io/covid-19/

License: Apache License 2.0

Python 1.30% Jupyter Notebook 98.70%
covid-19 coronavirus epidemiology-analysis stochastic-models coronavirus-analysis epidemiology sars-cov-2 epidemic-simulations sir-model disease-spread

covid-19's Introduction

Models

The following epidemiological models for the spread of SARS-CoV-2 (novel coronavirus) have been implemented:

Agent based network random walks

PDF: pjr.pdf

Network-G Network-G_

Rate of adding of clusters:(It's random!) Looks like a linear fit though! Rate

SIR- Stochastic

Using Gillespie algorithm a basic SIR model is generated.
Differential equation solution: corona_diff
Stochastic simulation: corona_stochastic
stochastic

SIR- Age Structure & Social contact based

I- Both symptomatic & asymptomatic
The age and social contact data for India that is needed to construct structured compartment models can be found at the following source:

Age Structure & Contact Matrices: data
Research Paper: https://arxiv.org/pdf/2003.12055.pdf

Source-code

SIaIsR

Uses networkX package and modelling the disease spread as a lattice, providing a way to identify and isolate the Hotspots.

Sick people Averaged

covid-19's People

Contributors

p-j-r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covid-19's Issues

Divide changes data array

In line 86 of the stochastic file,
data[i]/=n
changes the shape of data. Changing it to
data[i]=data[i]/n
fixes this.

Share load age structure data?

I am looking at your model. I would like to see if I can reproduce. Can you share your "load age structure data"?

Thanks,
Mike

ValueError: empty range for randrange()

In function first_case()
corona_walk

cx,cy= nodes[randrange(len(nodes))] 
temp=Lat.nodes[(cx,cy)]['walkers']        

This may potentially return an empty attribute as no walker may be at that node!

first_case=temp[randrange(len(temp))]   
infect[first_case]=1
Lat.nodes[(cx,cy)]['infected']+=1
global sick
sick=1

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.