Skip to main content

PhyloGeoPlot

PhyloGeoPlot is a Python package for linked visualization of phylogenetic trees and geographic occurrence data. It connects taxa represented in a phylogenetic tree to their geographic locations on a map and can optionally incorporate environmental raster data and quantitative trait information.

PhyloGeoPlot example

Installation

Install from PyPI:

pip install phylogeoplot

PhyloGeoPlot requires Python 3.10 or later.

Dependencies

Main dependencies are installed automatically with pip:

  • Biopython
  • Cartopy
  • Rasterio
  • Matplotlib
  • Pandas
  • NumPy
  • scikit-image

Basic usage

from phylogeoplot.visualisation.tree_to_map_raster import PhyloGeoPlotter

plotter = PhyloGeoPlotter(
    nwk_file="sequences_tree.nwk",
    gps_file="coordinates.csv",
    offset_file="offsets.csv",
    raster_file="environment.tif",
    raster_band=1,
)

plotter.plot()
plotter.save(output_dir="output")

Raster input is optional.

Documentation

Detailed documentation is available in the PhyloGeoPlot Wiki.

Useful pages:

Examples

The repository contains sample datasets and walkthrough notebooks for:

  • Malagasy Coffea
  • North Atlantic Cumacea

See the Examples page for details.

Source code

Source code and example data are available on GitHub:

https://github.com/tahiri-lab/PhyloGeoPlot

Tests

Run the test suite with:

python -m pytest -v

License

PhyloGeoPlot is distributed under the MIT License.

Author

Caroline Fortier

Citation

Citation information will be added here following publication.

Download files

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

Source Distribution

phylogeoplot-0.1.4.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

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

phylogeoplot-0.1.4-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file phylogeoplot-0.1.4.tar.gz.

File metadata

  • Download URL: phylogeoplot-0.1.4.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for phylogeoplot-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c26bc411ed8c241798cb8e2c185b517a4d5f672fa9093dd0cfb5d9c95c05a44f
MD5 80d15b0c27c92641cee821c54d16a354
BLAKE2b-256 a56d63ff3942ac13576e3cbc1a00975e23c35a6ee37ece92ea1e6ff7e8da1798

See more details on using hashes here.

Provenance

The following attestation bundles were made for phylogeoplot-0.1.4.tar.gz:

Publisher: publish.yml on tahiri-lab/PhyloGeoPlot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file phylogeoplot-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: phylogeoplot-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 41.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for phylogeoplot-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51c6b18602c3822e2daed36126f942090c6a3cbe404879723f744360a8d738bd
MD5 5ade15746366b6aa6842cc05d1470741
BLAKE2b-256 1e5a1ed65b02c5180be48cc46afd8682abe26cd3404835f2fd706355d4881df5

See more details on using hashes here.

Provenance

The following attestation bundles were made for phylogeoplot-0.1.4-py3-none-any.whl:

Publisher: publish.yml on tahiri-lab/PhyloGeoPlot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page