-
Notifications
You must be signed in to change notification settings - Fork 0
Preprocessing
Caroline Fortier edited this page Sep 6, 2026
·
1 revision
PhyloGeoPlot includes utilities for preparing occurrence, metadata, and phylogenetic data before visualization.
python -m phylogeoplot.preprocessing.format_gbif_data \
gbif_occurrences.csv \
node_names.csvRepository example:
python -m phylogeoplot.preprocessing.format_gbif_data \
examples/sample_data/use_case_1/gbif_coffea_ex3.csv \
examples/sample_data/use_case_1/node_names.csvpython -m phylogeoplot.preprocessing.add_metadata \
gbif_occurrences_formatted.csv \
trait_metadata.csvThis allows quantitative information to be represented in the linked visualization.
python -m phylogeoplot.preprocessing.build_phylogenetic_tree \
sequences.fastaThe input FASTA file should contain aligned sequences.
The resulting tree can then be supplied to the visualization module as a Newick file.
Additional preparation functionality is implemented in:
phylogeoplot/preprocessing/prepare_data.py
The preprocessing stage transforms source datasets into the consistent identifiers and structures required for linked tree-map visualization.
phylogeoplot/
└── preprocessing/
├── add_metadata.py
├── build_phylogenetic_tree.py
├── format_gbif_data.py
└── prepare_data.py
Once occurrence data and the phylogenetic tree have been prepared, continue with Visualization.
Please email us at: Nadia.Tahiri@USherbrooke.ca for any questions or feedback.