GithubHelp home page GithubHelp logo

davharris / sad-comparison Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weecology/sad-comparison

0.0 1.0 0.0 240.21 MB

Elita Baldridge's dissertation repository

Python 50.76% TeX 42.68% Makefile 0.45% R 6.12%

sad-comparison's Introduction

sad-comparison

####Repository for comparisons among species abundance distribution (SAD) models.

#####Data:
Community data the same as used in White EP, Thibault KM, Xiao X. 2012. Characterizing species abundance distributions across taxa and ecosystems using a simple maximum entropy model. Ecology. 93(8):1772-1778. Further details and scripts for data extraction and processing can be found in the GitHub repository for that paper at https://github.com/weecology/white-etal-2012-ecology Additional community data for Actinopterygii, Reptilia, Coleoptera, Arachnida, and Amphibia were mined from the literature and are publicly available for import through the EcoData Retriever (https://github.com/weecology/retriever) or on figshare (Baldridge, Elita (2013): Community abundance data. figshare. http://dx.doi.org/10.6084/m9.figshare.769251)

.

#####Python dependencies:
METE: https://github.com/weecology/METE.git
macroecotools: https://github.com/weecology/macroecotools.git
matplotlib
basemap for matplotlib: http://matplotlib.org/basemap/users/installing.html#installation numpy
scipy
pandas
seaborn

The METE module and the macroecotools module can be installed from the command line (with appropriate permissions)
git clone https://github.com/weecology/METE.git
cd METE
python setup.py install (sudo python setup.py install on Linux)
cd ..
git clone https://github.com/weecology/macroecotools.git
cd macroecotools
python setup.py install (with sudo for Linux)

#####SAD models tested and packages used:
Maximum Entropy Theory of Ecology (METE) (METE)
Logseries (macroecotools/macroeco_distributions)
Poisson lognormal (macroecotools/macroeco_distributions)
Negative binomial (macroecotools/macroeco_distributions)
Geometric series (macroecotools/macroeco_distributions)

Neutral theory: Because neutral theory predicts the negative binomial distribution at the local scale (Connolly et al. 2014. Commonness and rarity in the marine biosphere. PNAS 111: 8524-8529. http://www.pnas.org/content/111/23/8524.abstract), we used the prediction for the negative binomial distribution (macroecotools/macroecodistributions) instead of fitting the neutral theory model directly. The AICc for neutral theory was calculated with the appropriate number of parameters for neutral theory.

To reproduce the workflow and analyses in this repository, run:

misc-data-query.py to extract the Baldridge 2013 data used in addition to the White 2012 data (Data were first imported into an sqlite database with the EcoData Retriever).

AND

sad-comparisons.py to perform the analyses

sad-process-db.py to create a database from the analysis results from sad-comparisons.py

sad-comparison-graphs.py to generate the figures

OR

sad_neutral_analysis.py to perform the analysis and generate the figures.

sad-comparison's People

Contributors

embaldridge avatar ethanwhite avatar davharris avatar rueuntal 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.