Cornell Ecology Programs in Python
Project description
CornPy: Cornell Ecology Programs in Python
CornPy provides Python wrappers for two classic programs for ecological data analyses, DECORANA (DEtrended COrrespondence ANAlysis) and TWINSPAN (Two-Way SPecies INdicator ANalysis). Both programs were written by M. O. Hill in FORTRAN for mainframe computers, and modified for the IBM PC.
These modified versions use the "strict" convergence criteria of Oksanen & Minchin (1997) for eigenanalysis, with a tolerance of 0.000005 and a maximum iteration limit of 999. In DECORANA, the bug in non-linear scaling has been corrected.
Besides binary executables compiled with GNU gfortran to run under MS-Windows or GNU/Linux, FORTRAN source files, decorana.f and twinspan.f, are also provided for those who wish to change the maximum dimensions (by simply changing the numbers in the first PARAMETER statement in each program).
Both programs require an input data file in Cornell Condensed format, containing the community data to be analysed. The layout of this file should follow the same rules as for the original versions of DECORANA and TWINSPAN. The write_cep() function included in this package will automatically convert a pandas dataframe into a the required format for input to each program.
Install via 'pip install cornpy'
License
CornPy is distributed under the GNU General Public License
Version
0.1.0
Examples
Detrended correspondence analysis:
import pandas as pd
import cornpy as cp
df = pd.read_csv("data.csv")
site_scores, species_scores = cp.decorana(df)
Two-way species indicator analysis:
import pandas as pd
import cornpy as cp
df = pd.read_csv("data.csv")
output = twinspan(df)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cornpy-0.1.0.tar.gz.
File metadata
- Download URL: cornpy-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a4f1a63bfbf7b74b85ca22ffe290d0beaaf3e2001a656c32ca1f2c3f20d4b29
|
|
| MD5 |
1226e3bbc08b086d09a1d20a5081f07e
|
|
| BLAKE2b-256 |
aec637dc8da4fc8df6b5eee7e9faf04e3f3f6b90060503927a401e5ef8259de2
|
File details
Details for the file cornpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cornpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e2afd4da29879d416fd5a5e3c451acd2644fb3da490868ef1d49cad7c88006
|
|
| MD5 |
d649d98106eca6a9523e9aff4dca0c37
|
|
| BLAKE2b-256 |
ab54561fe4d1a6a4a3af766243795159cf7e4cb162e2b051f0229d7b47f0068e
|