Giter Club home page Giter Club logo

metacommunitydynamics.jl's Introduction

MetacommunityDynamics.jl is a package for generalizable simulation of population and community dynamics, both local and on spatial graphs. The package includes many 'classic' models from population, community, metapopulation, and metacommunity ecology, but enables extension by allowing users to define custom models.

MetacommunityDynamics is built on DifferentialEquations.jl, a state-of-the-art library for both ordinary and stochastic differential equations.

Platform for SciML in population and community ecology.

Here's the link to the documentation.

Warning The MetacommunityDynamics.jl package is currently under development. The API is not expected to change a lot, but it may change in order to facilitate the integration of new features. Not all functionality is guaranteed to function until the first production release.

metacommunitydynamics.jl's People

Contributors

gottacatchenall avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

ajonwa66

metacommunitydynamics.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

fitnessmap not defined

Thanks for your work on this package! I'm trying to run any of the examples, but keep getting the following error for each one:

UndefVarError: fitnessmap not defined

I gather that this links with growth.jl and the LogisticGrowth() function. An MRE is just your introductory example:

## Load packages
using MetacommunityDynamics
using DynamicGrids
using Dispersal: OutwardsDispersal
using Distributions

## Define consumer equation
consumermodel = 
    Eating{Tuple{:C,:R}}(
        functionalresponse = LotkaVolterra(0.1), 
        dt = 0.1) +
    OutwardsDispersal{:C}() + 
    LinearMortality{:C}(0.3);

## Define producer equation
resourcemodel = 
    LogisticGrowth{:R}= 2, K = 10., dt = 0.1) +
    LinearMortality{:R}(0.01) + 
    OutwardsDispersal{:R}();

## Put it together
model = resourcemodel + consumermodel

## Define metacommunity patch structure
gridsize = 10

## Initial conditions
initconsumer = rand(Biomass, Uniform(10, 30), gridsize, gridsize)
initresource = rand(Biomass, Uniform(10, 90), gridsize, gridsize)

## Integrate
arrayout = ArrayOutput((C = initconsumer, R = initresource ), tspan = 1:500)
sim!(arrayout, model);
  • OS: Ubuntu 20.04
  • Julia version: 1.7.1

Roadmap toward v1.0

v0.2

Features

  • Environment types and generation via NL.jl integration
  • Growth rates in response to environment

Enhancements

  • Better default parameters for existing models
  • Better printing via Term.jl

v0.3

Features

  • Trait type that describes an arbitrary trait for particular species across space/time
  • Growth rates proportional to traits in response to environment

v0.4

Features

  • Selection on Traits in response to both environment and local community composition

v0.??

  • speciation based on clustering traits

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.