Skip to content
maurobioPublic
forked from Auerilas/ecopy

About

Python tools for ecological data analyses

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

111 Commits

Folders and files

Repository files navigation

EcoPy: Python for Ecological Data Analyses

EcoPy provides tools for ecological data analyses. In general, it focuses on multivariate data analysis, which can be useful in any field, but with particular attention to those methods widely used in ecology. The homepage, with full documentation and examples, can be found here

Install via 'pip install ecopy'

What's New

0.2.0

  • Ported to Python 3.11-3.14
  • Removed dependency of C++ compiler
  • EcoPy 0.2.0 is a compatibility-focused revival release. Further numerical and methodological auditing is ongoing.

0.1.2.3

  • Fixed compatibility problems in functions cca(), simper(), and transform()
  • Added Ochiai's binary coefficient to distance() function
  • Added bioenv() function

0.1.2.2

  • More Python 3.x compatibility
  • Fix typos in code and examples on readthedocs. Thorough code check

License

EcoPy is distributed under the MIT license

Version

0.2.0

Release 0.2.0

  • Modernized for current Python 3 and NumPy, SciPy, pandas, and matplotlib.
  • Tested with Python 3.14.
  • The isotonic-regression implementation now has a pure-Python/NumPy fallback, so installation does not require a C/C++ compiler.
  • The original Cython implementation is retained as optional development code.
  • Updated legacy Python 2/early Python 3 APIs and numerical compatibility issues.
  • This release is intended as a compatibility-focused revival of EcoPy; further numerical and methodological auditing will continue in subsequent releases.

Examples

Transforming a site x species matrix, dividing by site totals:

import ecopy as ep
varespec = ep.load_data('varespec')
newMat = ep.transform(varespec, method='total', axis=1)

Calculating Bray-Curtis dissimilarities on the new matrix:

brayMat = ep.distance(newMat, method='bray')

PCA on US Arrests data:

USArrests = ep.load_data('USArrests')
prcomp = ep.pca(USArrests, scale = True)
prcomp.biplot(type = 'distance')
prcomp.biplot(type = 'correlation')

Full online documentation is a work in progress

TO-DO

  • MINIMUM SPANNING TREE
  • PROCRUSTES ROTATION
  • LINEAR/SURFACE ENVIRONMENTAL FITTING
  • MAXENT WRAPPER
  • MANY MANY OTHER THINGS

About

Python tools for ecological data analyses

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages