Skip to main content

Coalescent-based simulations of eco-evolutionary biodiverity dynamics

Project description

EcoPhylo

PyPI status PyPI version PyPI license PyPI pyversions

Ecophylo is dedicated to coalescent-based simulation of eco-evolutionary dynamics. Species assemblages and their shared ancestry can be simulated by jointly taking into account the influence of past demographic fluctuations and extinctions along with how divergent genotypes have introduced new species over time through speciation.

The source for this project is available here.


Dependencies

This package depend on python 3.7.

There are multiple dependencies to other python packages. This will be done when installing ecophylo tool in most cases.

You can experiment difficulties for installing msprime, check the help here

Install (with pip)

To install this package, you can either download the tar.gz file in the dist directory of the repository :

python3 -m pip install <path_to>/ecophylo-<VERSION>.tar.gz

or install from the Python Package index (Pypi) :

python3 -m pip install ecophylo

or install from github (it does not work for private repository):

python3 -m pip install git+https://github.com/thegreatlizzyator/ecophylo/tree/packaging/dist/ecophylo-0.0.5.tar.gz

Usage

You can simulate trees using this package main function in python.

import ecophylo
n = 25 #the number of sampled individuals
com_size = [[5000,10000,50000]] # the size of the assemblage in the past, the first element is the current assemblage size
mu = 0.001 # the point mutation rate
changetime = [[0,700,10000]] # the dates (in generation time) at which the assemblage has changed sizes in the past

tree = ecophylo.simulate(samples = n,
                         com_size= com_size, 
                         mu = mu, 
                         changetime= changetime, seed= 42)

print(tree)

Maintainers

@thegreatlizzyator & @gowachin.

Contributing

Feel free to dive in! Open an issue or submit PRs.

thegreatlizzyator follows the Contributor Covenant Code of Conduct.

Contributors

This project exists thanks to all the people who contribute.

License

CeCILL-B © Elizabeth Bathelemy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecophylo-0.1.6.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecophylo-0.1.6-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file ecophylo-0.1.6.tar.gz.

File metadata

  • Download URL: ecophylo-0.1.6.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9

File hashes

Hashes for ecophylo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3ceacee7a1c0f3b8533f95f8c9e7e39957ecdc4c5c17536ceb283010d7966241
MD5 7cee2f4178e652419ae0af3f971599ab
BLAKE2b-256 b6a8d79455f74876bda6771123b9d4f04a9e79851c768c7145c0bcdbd149b549

See more details on using hashes here.

File details

Details for the file ecophylo-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ecophylo-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9

File hashes

Hashes for ecophylo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 819486f420e45b5ae3f0caf60c5caee0efcd0128c953bebb09a0651a58eea337
MD5 1a166fd516916ecff9f006fc33b0f72f
BLAKE2b-256 94b403e63a684506ce8dd59d56f271279df571ee124ca0ebcbbbfb32d647eb98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page