phyddle 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {phyddle-0.3.0 → phyddle-0.3.2}/.bumpversion.cfg +1 -1
- {phyddle-0.3.0 → phyddle-0.3.2}/.gitignore +48 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/DEVGUIDE.md +3 -1
- {phyddle-0.3.0 → phyddle-0.3.2}/PKG-INFO +18 -7
- {phyddle-0.3.0 → phyddle-0.3.2}/README.md +15 -5
- {phyddle-0.3.0 → phyddle-0.3.2}/UPDATES.md +24 -1
- {phyddle-0.3.0 → phyddle-0.3.2}/pyproject.toml +2 -1
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/__init__.py +3 -3
- phyddle-0.3.2/src/phyddle/estimate.py +1186 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/format.py +255 -19
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/network.py +86 -14
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/plot.py +90 -29
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/simulate.py +14 -10
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/train.py +407 -117
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/utilities.py +234 -32
- phyddle-0.3.0/src/phyddle/estimate.py +0 -573
- {phyddle-0.3.0 → phyddle-0.3.2}/.github/workflows/documentation.yml +0 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/.github/workflows/tests.yml +0 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/CNAME +0 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/LICENSE +0 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/__main__.py +0 -0
- {phyddle-0.3.0 → phyddle-0.3.2}/src/phyddle/command_line.py +0 -0
|
@@ -90,3 +90,51 @@ docs/source/tables/glossary_raw.csv
|
|
|
90
90
|
docs/source/tables/make_phyddle_settings_table.sh
|
|
91
91
|
workspace/levy_r/config_modeltest.py
|
|
92
92
|
workspace/levy_r/plot_tree.R
|
|
93
|
+
|
|
94
|
+
tests/workspace/valid/simulate/out.*.stdout.log
|
|
95
|
+
tests/workspace/valid/simulate/out.*.stderr.log
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
docs/example.zip
|
|
99
|
+
docs/out.network_architecture.png
|
|
100
|
+
docs/source/images/favicon2.svg
|
|
101
|
+
fig1_phyddle_pipeline.pptx
|
|
102
|
+
tests/workspace.bak/
|
|
103
|
+
uv.lock
|
|
104
|
+
workspace/albert/
|
|
105
|
+
workspace/bisse_r/bisse_r.tar.gz
|
|
106
|
+
workspace/bisse_r/empirical_outlier/
|
|
107
|
+
workspace/bisse_r/format_undertrain/
|
|
108
|
+
workspace/bisse_r/history.txt
|
|
109
|
+
workspace/bisse_r/plot_outlier/
|
|
110
|
+
workspace/bisse_r/plot_undertrain/
|
|
111
|
+
workspace/bisse_r/plot_within/
|
|
112
|
+
workspace/bisse_r/train_overtrain/
|
|
113
|
+
workspace/bisse_r/train_undertrain/
|
|
114
|
+
workspace/bisse_r_acp/
|
|
115
|
+
workspace/bisse_r_basic/empirical.bisse/
|
|
116
|
+
workspace/bisse_r_basic/empirical.sir/
|
|
117
|
+
workspace/bisse_r_basic/new_empirical/
|
|
118
|
+
workspace/bisse_r_nolabel/
|
|
119
|
+
workspace/bisse_validate_r/
|
|
120
|
+
workspace/chromo.zip
|
|
121
|
+
workspace/chromo/
|
|
122
|
+
workspace/chromosizesse/
|
|
123
|
+
workspace/ddgeosse_jl/
|
|
124
|
+
workspace/levy_1tree/
|
|
125
|
+
workspace/levy_r/compare.conf_mtx.csv
|
|
126
|
+
workspace/levy_r/phyddle.conf_mtx.csv
|
|
127
|
+
workspace/levy_r/plot copy/
|
|
128
|
+
workspace/levy_r/plot_conf_mtx.R
|
|
129
|
+
workspace/levy_r/pulsr.conf_mtx.csv
|
|
130
|
+
workspace/levy_r/validate_levy.pdf
|
|
131
|
+
workspace/mol_revbayes/history.txt
|
|
132
|
+
workspace/sim_chromosse_test.py
|
|
133
|
+
workspace/sir_master/test/
|
|
134
|
+
workspace/sirm_all_phases_master/SIRM_postexp.phyddle_proj.tar.gz
|
|
135
|
+
workspace/sirm_all_phases_master/post_exponential_sim_files/
|
|
136
|
+
workspace/sirm_all_phases_master/postexp_bayesian_analysis/
|
|
137
|
+
workspace/sirm_all_phases_master/postexp_cnn_est/
|
|
138
|
+
workspace/sirm_exp_phase_master/SIRM_exp.phyddle_proj.tar.gz
|
|
139
|
+
workspace/sirm_exp_phase_master/sysbio_2024_bayes_estimates/
|
|
140
|
+
workspace/sirm_exp_phase_master/sysbio_phylocomp_files/
|
|
@@ -221,7 +221,8 @@ Upload to distribution to TestPyPI
|
|
|
221
221
|
python3 -m twine upload --repository --skip-existing testpypi dist/*
|
|
222
222
|
|
|
223
223
|
# verify TestPyPI install works (e.g. for x.x.x => v0.0.7)
|
|
224
|
-
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps phyddle-x.x.x.*
|
|
224
|
+
## python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps phyddle-x.x.x.* # does not work as of 250227
|
|
225
|
+
python3 -m pip install -i https://test.pypi.org/simple/ phyddle==x.x.x
|
|
225
226
|
|
|
226
227
|
# should be able to import within Python session now, e.g.
|
|
227
228
|
# >>> from phyddle import command_line
|
|
@@ -237,6 +238,7 @@ Upload distribution to PyPI (similar to above)
|
|
|
237
238
|
|
|
238
239
|
# verify PyPI install works
|
|
239
240
|
python3 -m pip install phyddle
|
|
241
|
+
python3 -m pip install phyddle==x.x.x
|
|
240
242
|
|
|
241
243
|
# should be able to import within Python session now, e.g.
|
|
242
244
|
# >>> from phyddle import command_line
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: phyddle
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Software for phylogenetic model exploration with deep learning
|
|
5
5
|
Project-URL: Homepage, https://github.com/mlandis/phyddle
|
|
6
6
|
Project-URL: Bug Reports, https://github.com/mlandis/phyddle/issues
|
|
@@ -24,6 +24,7 @@ Requires-Dist: h5py>=3.10.0
|
|
|
24
24
|
Requires-Dist: matplotlib>=3.8.2
|
|
25
25
|
Requires-Dist: numpy>=1.26.4
|
|
26
26
|
Requires-Dist: pandas>=2.2.0
|
|
27
|
+
Requires-Dist: pillow>=11.0.0
|
|
27
28
|
Requires-Dist: pydot>=2.0.0
|
|
28
29
|
Requires-Dist: pypdf>=4.0.0
|
|
29
30
|
Requires-Dist: scikit-learn>=1.4.0
|
|
@@ -33,15 +34,15 @@ Requires-Dist: torchview>=0.2.6
|
|
|
33
34
|
Requires-Dist: tqdm>=4.66.1
|
|
34
35
|
Description-Content-Type: text/markdown
|
|
35
36
|
|
|
36
|
-
# phyddle 0.3.
|
|
37
|
+
# phyddle 0.3.2
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
Software for exploring phylogenetic models with deep learning [[manuscript](https://doi.org/10.1093/sysbio/syaf036)]
|
|
39
40
|
|
|
40
41
|
## User guide
|
|
41
42
|
Visit https://phyddle.org to learn how to use the software.
|
|
42
43
|
|
|
43
|
-
## Overview
|
|
44
44
|
|
|
45
|
+
## Overview
|
|
45
46
|
<img align="right" src="https://phyddle.org/_images/phyddle_pipeline.png" width="35%">
|
|
46
47
|
|
|
47
48
|
A standard phyddle analysis performs the following tasks for you:
|
|
@@ -112,11 +113,21 @@ phyddle
|
|
|
112
113
|
|
|
113
114
|
phyddle uses third-party simulators to generate training datasets. Example workflows assume that [R](https://cran.r-project.org), [RevBayes](https://revbayes.github.io), [Phylojunction](https://phylojunction.org/build/html/index.html), or [BEAST](https://www.beast2.org/) with [MASTER](https://github.com/tgvaughan/MASTER) (plugin) is installed on your machine and can be executed as a command from terminal. The documentation explains how to configure R for use with phyddle.
|
|
114
115
|
|
|
116
|
+
## Need help?
|
|
117
|
+
Visit the [Discussions](https://github.com/mlandis/phyddle/discussions) page to interact with other phyddle users and receive help.
|
|
118
|
+
|
|
119
|
+
## Citation
|
|
120
|
+
If you used phyddle, please cite:
|
|
121
|
+
> MJ Landis, A Thompson. 2025. phyddle: software for exploring phylogenetic models with deep learning. Systematic Biology (in press). doi:10.1093/sysbio/syaf036.<br>
|
|
122
|
+
|
|
123
|
+
> A Thompson, B Liebeskind, EJ Scully, MJ Landis. 2024. Deep learning and likelihood approaches for viral phylogeography converge on the same answers whether the inference model is right or wrong. Systematic Biology 73:183-206.
|
|
124
|
+
|
|
115
125
|
## Note on code stability
|
|
116
126
|
|
|
117
127
|
Code on the [main](https://github.com/mlandis/phyddle/tree/main) branch is tested and stable with respect to the standard use cases. Code on the [development](https://github.com/mlandis/phyddle/tree/development) branch contains new features, but is not as rigorously tested. Most phyddle development occurs on a 16-core Intel Macbook Pro laptop and a 64-core Intel Ubuntu server. Any feedback is appreciated! [michael.landis@wustl.edu](mailto:michael.landis@wustl.edu)
|
|
118
128
|
|
|
129
|
+
|
|
119
130
|
## About
|
|
120
|
-
Thanks for your interest in phyddle. The phyddle project emerged from a phylogenetic deep learning study led by Ammon Thompson ([paper](https://doi.org/10.1093/sysbio/syad074)). The goal of phyddle is to provide its users with a generalizable pipeline workflow for phylogenetic modeling and deep learning. This hopefully will make it easier for phylogenetic model enthusiasts and developers to explore and apply models that do not have tractable likelihood functions. It's also intended for use by methods developers who want to characterize how deep learning methods perform under different conditions for standard phylogenetic estimation tasks.
|
|
131
|
+
Thanks for your interest in phyddle. The phyddle project emerged from a phylogenetic deep learning study led by Ammon Thompson ([paper](https://doi.org/10.1093/sysbio/syad074)). The goal of phyddle is to provide its users with a generalizable pipeline workflow for phylogenetic modeling and deep learning. This hopefully will make it easier for phylogenetic model enthusiasts and developers to explore and apply models that do not have tractable likelihood functions. It's also intended for use by methods developers who want to characterize how deep learning methods perform under different conditions for standard phylogenetic estimation tasks. Read more about phyddle at https://doi.org/10.1093/sysbio/syaf036.
|
|
121
132
|
|
|
122
|
-
The phyddle project is developed by [Michael Landis](https://landislab.org) and [Ammon Thompson](https://scholar.google.com/
|
|
133
|
+
The phyddle project is developed by [Michael Landis](https://landislab.org) and [Ammon Thompson](https://scholar.google.com/citatio:wqns?user=_EpmmTwAAAAJ&hl=en&oi=ao).
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# phyddle 0.3.
|
|
1
|
+
# phyddle 0.3.2
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Software for exploring phylogenetic models with deep learning [[manuscript](https://doi.org/10.1093/sysbio/syaf036)]
|
|
4
4
|
|
|
5
5
|
## User guide
|
|
6
6
|
Visit https://phyddle.org to learn how to use the software.
|
|
7
7
|
|
|
8
|
-
## Overview
|
|
9
8
|
|
|
9
|
+
## Overview
|
|
10
10
|
<img align="right" src="https://phyddle.org/_images/phyddle_pipeline.png" width="35%">
|
|
11
11
|
|
|
12
12
|
A standard phyddle analysis performs the following tasks for you:
|
|
@@ -77,11 +77,21 @@ phyddle
|
|
|
77
77
|
|
|
78
78
|
phyddle uses third-party simulators to generate training datasets. Example workflows assume that [R](https://cran.r-project.org), [RevBayes](https://revbayes.github.io), [Phylojunction](https://phylojunction.org/build/html/index.html), or [BEAST](https://www.beast2.org/) with [MASTER](https://github.com/tgvaughan/MASTER) (plugin) is installed on your machine and can be executed as a command from terminal. The documentation explains how to configure R for use with phyddle.
|
|
79
79
|
|
|
80
|
+
## Need help?
|
|
81
|
+
Visit the [Discussions](https://github.com/mlandis/phyddle/discussions) page to interact with other phyddle users and receive help.
|
|
82
|
+
|
|
83
|
+
## Citation
|
|
84
|
+
If you used phyddle, please cite:
|
|
85
|
+
> MJ Landis, A Thompson. 2025. phyddle: software for exploring phylogenetic models with deep learning. Systematic Biology (in press). doi:10.1093/sysbio/syaf036.<br>
|
|
86
|
+
|
|
87
|
+
> A Thompson, B Liebeskind, EJ Scully, MJ Landis. 2024. Deep learning and likelihood approaches for viral phylogeography converge on the same answers whether the inference model is right or wrong. Systematic Biology 73:183-206.
|
|
88
|
+
|
|
80
89
|
## Note on code stability
|
|
81
90
|
|
|
82
91
|
Code on the [main](https://github.com/mlandis/phyddle/tree/main) branch is tested and stable with respect to the standard use cases. Code on the [development](https://github.com/mlandis/phyddle/tree/development) branch contains new features, but is not as rigorously tested. Most phyddle development occurs on a 16-core Intel Macbook Pro laptop and a 64-core Intel Ubuntu server. Any feedback is appreciated! [michael.landis@wustl.edu](mailto:michael.landis@wustl.edu)
|
|
83
92
|
|
|
93
|
+
|
|
84
94
|
## About
|
|
85
|
-
Thanks for your interest in phyddle. The phyddle project emerged from a phylogenetic deep learning study led by Ammon Thompson ([paper](https://doi.org/10.1093/sysbio/syad074)). The goal of phyddle is to provide its users with a generalizable pipeline workflow for phylogenetic modeling and deep learning. This hopefully will make it easier for phylogenetic model enthusiasts and developers to explore and apply models that do not have tractable likelihood functions. It's also intended for use by methods developers who want to characterize how deep learning methods perform under different conditions for standard phylogenetic estimation tasks.
|
|
95
|
+
Thanks for your interest in phyddle. The phyddle project emerged from a phylogenetic deep learning study led by Ammon Thompson ([paper](https://doi.org/10.1093/sysbio/syad074)). The goal of phyddle is to provide its users with a generalizable pipeline workflow for phylogenetic modeling and deep learning. This hopefully will make it easier for phylogenetic model enthusiasts and developers to explore and apply models that do not have tractable likelihood functions. It's also intended for use by methods developers who want to characterize how deep learning methods perform under different conditions for standard phylogenetic estimation tasks. Read more about phyddle at https://doi.org/10.1093/sysbio/syaf036.
|
|
86
96
|
|
|
87
|
-
The phyddle project is developed by [Michael Landis](https://landislab.org) and [Ammon Thompson](https://scholar.google.com/
|
|
97
|
+
The phyddle project is developed by [Michael Landis](https://landislab.org) and [Ammon Thompson](https://scholar.google.com/citatio:wqns?user=_EpmmTwAAAAJ&hl=en&oi=ao).
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
**phyddle v0.3.
|
|
1
|
+
**phyddle v0.3.2** -- 26.11.19
|
|
2
|
+
|
|
3
|
+
* Test/validation/calibration datasets are now processed in batches, allowing larger datasets to be processed
|
|
4
|
+
* Plot now skips PCA plots for datasets that contain no variation (e.g. if all training examples use the same fixed tree)
|
|
5
|
+
* Corrected calibration symmetric adjustment factor for conformalized quantile prediction (introduced in v0.3.1)
|
|
6
|
+
* Updated remaining code to be compatible with pandas v3.0.0+
|
|
7
|
+
* Minor updates to documentation
|
|
8
|
+
|
|
9
|
+
**phyddle v0.3.1** -- 26.11.11
|
|
10
|
+
|
|
11
|
+
* Add support for ancestral state estimation (https://doi.org/10.64898/2026.03.19.712918); read the paper, documentation, and tutorial to use
|
|
12
|
+
* Add support for adaptive conformal prediction for generating calibrated prediction intervals, configured with `cpi_method` setting
|
|
13
|
+
* Train allows you use "total" or "consecutive" count of decreasing performance to stop training, configured with `early_stop_rule` setting
|
|
14
|
+
* Train can now use "sum" or (learned) "weighted_sum" for multitarget training, configured with `loss_aggregation` setting
|
|
15
|
+
* Train now supports dropout layers, configured with new `phy_dropout_prop`, `aux_dropout_prop`, and `lbl_dropout_prop` settings
|
|
16
|
+
* Plot now uses x_est ~ x_true instead of x_true ~ x_est to show parameter estimation accuracy
|
|
17
|
+
* Plot handles fixed variables for KDE better now, but still not perfect
|
|
18
|
+
* Format handles presence/absence of "taxa" header in data file more gracefully
|
|
19
|
+
* Estimate more reliably predicts shape of categorical labels (rare crashes before)
|
|
20
|
+
* Increased default proportion of validation/test examples from 0.05 to 0.10
|
|
21
|
+
* Simulate/Format/Train now report number of CPUs used
|
|
22
|
+
* Fix various issues with dependencies and library updates
|
|
23
|
+
|
|
24
|
+
**phyddle v0.3.0** -- 25.02.27
|
|
2
25
|
|
|
3
26
|
* Includes new safety features, settings, bug fixes, and documentation
|
|
4
27
|
* Estimate now warns user if empirical input/labels are out-of-distribution
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "phyddle"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Michael Landis", email="michael.landis@wustl.edu" },
|
|
10
10
|
{ name="Ammon Thompson", email="ammonthompson@gmail.com" },
|
|
@@ -23,6 +23,7 @@ dependencies = [
|
|
|
23
23
|
"pandas>=2.2.0",
|
|
24
24
|
"pydot>=2.0.0",
|
|
25
25
|
"pypdf>=4.0.0",
|
|
26
|
+
"Pillow>=11.0.0",
|
|
26
27
|
"scikit-learn>=1.4.0",
|
|
27
28
|
"scipy>=1.14.0",
|
|
28
29
|
"torch>=2.2.0",
|
|
@@ -5,7 +5,7 @@ __init__
|
|
|
5
5
|
Initializes phyddle package and discovers all modules.
|
|
6
6
|
|
|
7
7
|
Authors: Michael Landis, Ammon Thompson
|
|
8
|
-
Copyright: (c) 2022-
|
|
8
|
+
Copyright: (c) 2022-2026, Michael Landis and Ammon Thompson
|
|
9
9
|
License: MIT
|
|
10
10
|
"""
|
|
11
11
|
|
|
@@ -14,9 +14,9 @@ License: MIT
|
|
|
14
14
|
from multiprocessing import set_start_method
|
|
15
15
|
|
|
16
16
|
__project__ = 'phyddle'
|
|
17
|
-
__version__ = '0.3.
|
|
17
|
+
__version__ = '0.3.2'
|
|
18
18
|
__author__ = 'Michael Landis and Ammon Thompson'
|
|
19
|
-
__copyright__ = '(c) 2022-
|
|
19
|
+
__copyright__ = '(c) 2022-2026, Michael Landis and Ammon Thompson'
|
|
20
20
|
__citation__ = 'MJ Landis, A Thompson. 2024. phyddle: software for phylogenetic model exploration with deep learning. bioRxiv 2024.08.06.606717.'
|
|
21
21
|
|
|
22
22
|
# DEFAULT
|