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.
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:
- Installation
- Input Data
- Preprocessing
- Visualization
- Examples
- Testing and Development
- Troubleshooting
- Citation
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c26bc411ed8c241798cb8e2c185b517a4d5f672fa9093dd0cfb5d9c95c05a44f
|
|
| MD5 |
80d15b0c27c92641cee821c54d16a354
|
|
| BLAKE2b-256 |
a56d63ff3942ac13576e3cbc1a00975e23c35a6ee37ece92ea1e6ff7e8da1798
|
Provenance
The following attestation bundles were made for phylogeoplot-0.1.4.tar.gz:
Publisher:
publish.yml on tahiri-lab/PhyloGeoPlot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phylogeoplot-0.1.4.tar.gz -
Subject digest:
c26bc411ed8c241798cb8e2c185b517a4d5f672fa9093dd0cfb5d9c95c05a44f - Sigstore transparency entry: 2743780000
- Sigstore integration time:
-
Permalink:
tahiri-lab/PhyloGeoPlot@76fdf0830f46b42fd6b1cf3d18088df92dd0280c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tahiri-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@76fdf0830f46b42fd6b1cf3d18088df92dd0280c -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c6b18602c3822e2daed36126f942090c6a3cbe404879723f744360a8d738bd
|
|
| MD5 |
5ade15746366b6aa6842cc05d1470741
|
|
| BLAKE2b-256 |
1e5a1ed65b02c5180be48cc46afd8682abe26cd3404835f2fd706355d4881df5
|
Provenance
The following attestation bundles were made for phylogeoplot-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on tahiri-lab/PhyloGeoPlot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phylogeoplot-0.1.4-py3-none-any.whl -
Subject digest:
51c6b18602c3822e2daed36126f942090c6a3cbe404879723f744360a8d738bd - Sigstore transparency entry: 2743780002
- Sigstore integration time:
-
Permalink:
tahiri-lab/PhyloGeoPlot@76fdf0830f46b42fd6b1cf3d18088df92dd0280c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tahiri-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@76fdf0830f46b42fd6b1cf3d18088df92dd0280c -
Trigger Event:
workflow_dispatch
-
Statement type: