Giter Club home page Giter Club logo

seednet's Introduction

SEEDNet

Build Status

SEEDNet has been designed to simulate outbreaks over a network created by combining satellite imagery, population data, and road network information. It is versatile in that it can be used for any metapopulation model on networks with distance and population data.

Installation

Run the following:

remotes::install_github("nistara/SEEDNet")
library("SEEDNet")

Compartmental disease model

Discrete time, stochastic, metatpopulation model.

In case of influenza, the compartmental model is SEIR:

S - Susceptible E - Latent I - Infectious R - Recovered

Main functions

  1. disnet_commuting - Comuting function. Takes in network object (in graphml format), and calculates the commuting rates for all outgoing edges in network

  2. disnet_sim_setup - Simulation setup function. Takes in the graph file with commuting rates added to it, and preps it up for runnning simulations.

  3. disnet_simulate - Simulation function. This function runs the disease model simulations over the network.

library("disnet")

# Read in sample graph/network
f = system.file("sampleData", "g.rds", package = "disnet")
g = readRDS(f)

# calculate commuting rates over it
g_comm = disnet_commuting(g)

# select random node to seed infection in
set.seed(890)
nodes = igraph::vcount(g_comm)
seed_nd = igraph::vertex_attr(g_comm, "name", sample(1:nodes, 1))

# set up the network for simulations
for_sim = disnet_sim_setup(g_comm, seed_nd = seed_nd, output_dir = NA)

# run the simulations over the network
simres = disnet_simulate(sim_input = for_sim, sim_output_dir = NA)

Sample datasets

  • g.RDS: The raw graphml/network object

To access the sample dataset:

f = system.file("sampleData", "g.rds", package = "disnet")
g = readRDS(f)

Contributing and Support

If you would like to contribute to this software, please submit a pull request to the GitHub repository. Feel free to report issues, provide feedback, suggest improvements, and ask questions by opening a new issue.

seednet's People

Contributors

clarkfitzg avatar duncantl avatar nistara avatar

Watchers

 avatar  avatar  avatar

seednet's Issues

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.