Code Monkey home page Code Monkey logo

communitysim's Introduction

CommunitySim

R-CMD-check

CommunitySim simulates an ecological community, such as a microbiome using Lotka-Volterra based models. In particular, dynamics of species are simulated assuming a third species can influence the intensity of pairwise interactions, an assumption referred to as a higher-order interaction.

Introduction

Lotka-Volterra describes the change of abundance of species relating to the abundance of all members in the community:

where alpha_i is species iโ€™s growth rate without the influence from other species; b_ij is the impact of other species on the growth of i, on a per unit basis.

The higher-order interaction states that a third species can not only interact with other species in a pairwise manner, but also influence the intensity of existing pairwise interactions in the community, which is modeled by b_ij:

Here the pairwise interaction intensity is modeled as a flat rate modified by the abundance of third species, x_k.

With varying interaction intensity and initial abundance of species, the change in abundance of the community over time can be studied by solving the coupled ODEs. This package provides a simulation of above stated parameters, and a solver for the coupled ODEs.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("yuan-yin-truly/CommunitySim")

How to use

Please refer to the vignette at doc/CommunitySim.html or doc/CommunitySim.pdf.

communitysim's People

Contributors

yuan-yin-truly avatar

Stargazers

 avatar

Watchers

 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.