phyddle 0.2.2__tar.gz → 0.3.1__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.2.2 → phyddle-0.3.1}/.bumpversion.cfg +1 -1
- {phyddle-0.2.2 → phyddle-0.3.1}/.github/workflows/documentation.yml +1 -1
- {phyddle-0.2.2 → phyddle-0.3.1}/.github/workflows/tests.yml +1 -1
- {phyddle-0.2.2 → phyddle-0.3.1}/.gitignore +3 -0
- {phyddle-0.2.2 → phyddle-0.3.1}/DEVGUIDE.md +3 -1
- {phyddle-0.2.2 → phyddle-0.3.1}/LICENSE +1 -1
- {phyddle-0.2.2 → phyddle-0.3.1}/PKG-INFO +33 -23
- {phyddle-0.2.2 → phyddle-0.3.1}/README.md +15 -5
- phyddle-0.3.1/UPDATES.md +194 -0
- phyddle-0.3.1/fig1_phyddle_pipeline.pptx +0 -0
- {phyddle-0.2.2 → phyddle-0.3.1}/pyproject.toml +17 -17
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/__init__.py +4 -4
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/command_line.py +3 -3
- phyddle-0.3.1/src/phyddle/estimate.py +1154 -0
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/format.py +457 -167
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/network.py +100 -14
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/plot.py +693 -523
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/simulate.py +32 -18
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/train.py +344 -59
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/utilities.py +465 -54
- phyddle-0.2.2/src/phyddle/estimate.py +0 -502
- {phyddle-0.2.2 → phyddle-0.3.1}/CNAME +0 -0
- {phyddle-0.2.2 → phyddle-0.3.1}/src/phyddle/__main__.py +0 -0
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
- uses: actions/setup-python@v3
|
|
11
11
|
- name: Install dependencies
|
|
12
12
|
run: |
|
|
13
|
-
pip install sphinx sphinx_rtd_theme sphinxemoji sphinxcontrib-googleanalytics
|
|
13
|
+
pip install sphinx sphinx_rtd_theme sphinxemoji sphinxcontrib-googleanalytics sphinx_subfigure
|
|
14
14
|
- name: Sphinx build
|
|
15
15
|
run: |
|
|
16
16
|
sphinx-build docs/source _build
|
|
@@ -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
1
|
# Released under MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Michael Landis, Ammon Thompson
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (phyddle; the “Software”), to deal in
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: phyddle
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Software
|
|
3
|
+
Version: 0.3.1
|
|
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
|
|
7
7
|
Project-URL: Documentation, https://mlandis.github.io/phyddle
|
|
@@ -17,32 +17,32 @@ Classifier: Programming Language :: Python :: 3
|
|
|
17
17
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
20
|
-
Requires-Python: >=3.
|
|
21
|
-
Requires-Dist: dendropy
|
|
22
|
-
Requires-Dist: graphviz
|
|
23
|
-
Requires-Dist: h5py
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist: pydot
|
|
29
|
-
Requires-Dist: pypdf
|
|
30
|
-
Requires-Dist: scikit-learn
|
|
31
|
-
Requires-Dist: scipy
|
|
32
|
-
Requires-Dist: torch
|
|
33
|
-
Requires-Dist:
|
|
34
|
-
Requires-Dist: tqdm
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Requires-Dist: dendropy>=4.6.0
|
|
22
|
+
Requires-Dist: graphviz>=0.20.0
|
|
23
|
+
Requires-Dist: h5py>=3.10.0
|
|
24
|
+
Requires-Dist: matplotlib>=3.8.2
|
|
25
|
+
Requires-Dist: numpy>=1.26.4
|
|
26
|
+
Requires-Dist: pandas>=2.2.0
|
|
27
|
+
Requires-Dist: pillow>=11.0.0
|
|
28
|
+
Requires-Dist: pydot>=2.0.0
|
|
29
|
+
Requires-Dist: pypdf>=4.0.0
|
|
30
|
+
Requires-Dist: scikit-learn>=1.4.0
|
|
31
|
+
Requires-Dist: scipy>=1.14.0
|
|
32
|
+
Requires-Dist: torch>=2.2.0
|
|
33
|
+
Requires-Dist: torchview>=0.2.6
|
|
34
|
+
Requires-Dist: tqdm>=4.66.1
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
|
|
37
|
-
# phyddle 0.
|
|
37
|
+
# phyddle 0.3.1
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Software for exploring phylogenetic models with deep learning [[manuscript](https://doi.org/10.1093/sysbio/syaf036)]
|
|
40
40
|
|
|
41
41
|
## User guide
|
|
42
42
|
Visit https://phyddle.org to learn how to use the software.
|
|
43
43
|
|
|
44
|
-
## Overview
|
|
45
44
|
|
|
45
|
+
## Overview
|
|
46
46
|
<img align="right" src="https://phyddle.org/_images/phyddle_pipeline.png" width="35%">
|
|
47
47
|
|
|
48
48
|
A standard phyddle analysis performs the following tasks for you:
|
|
@@ -113,11 +113,21 @@ phyddle
|
|
|
113
113
|
|
|
114
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.
|
|
115
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
|
+
|
|
116
125
|
## Note on code stability
|
|
117
126
|
|
|
118
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)
|
|
119
128
|
|
|
129
|
+
|
|
120
130
|
## About
|
|
121
|
-
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.
|
|
122
132
|
|
|
123
|
-
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.
|
|
1
|
+
# phyddle 0.3.1
|
|
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).
|
phyddle-0.3.1/UPDATES.md
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
**phyddle v0.3.1** -- 26.11.11
|
|
2
|
+
|
|
3
|
+
* Add support for ancestral state estimation (https://doi.org/10.64898/2026.03.19.712918); read the paper, documentation, and tutorial to use
|
|
4
|
+
* Add support for adaptive conformal prediction for generating calibrated prediction intervals, configured with `cpi_method` setting
|
|
5
|
+
* Train allows you use "total" or "consecutive" count of decreasing performance to stop training, configured with `early_stop_rule` setting
|
|
6
|
+
* Train can now use "sum" or (learned) "weighted_sum" for multitarget training, configured with `loss_aggregation` setting
|
|
7
|
+
* Train now supports dropout layers, configured with new `phy_dropout_prop`, `aux_dropout_prop`, and `lbl_dropout_prop` settings
|
|
8
|
+
* Plot now uses x_est ~ x_true instead of x_true ~ x_est to show parameter estimation accuracy
|
|
9
|
+
* Plot handles fixed variables for KDE better now, but still not perfect
|
|
10
|
+
* Format handles presence/absence of "taxa" header in data file more gracefully
|
|
11
|
+
* Estimate more reliably predicts shape of categorical labels (rare crashes before)
|
|
12
|
+
* Increased default proportion of validation/test examples from 0.05 to 0.10
|
|
13
|
+
* Simulate/Format/Train now report number of CPUs used
|
|
14
|
+
* Fix various issues with dependencies and library updates
|
|
15
|
+
|
|
16
|
+
**phyddle v0.3.0** -- 25.02.27
|
|
17
|
+
|
|
18
|
+
* Includes new safety features, settings, bug fixes, and documentation
|
|
19
|
+
* Estimate now warns user if empirical input/labels are out-of-distribution
|
|
20
|
+
* Estimate/Format no longer require labels file for empirical analyses unless param_data used
|
|
21
|
+
* Plot improved to make it easier to notice out-of-distribution empirical input/labels
|
|
22
|
+
* Plot now makes PCA of encoded trees to help with out-of-distribution detection
|
|
23
|
+
* Replace mean APE scores for training diagnostics with median APE scores
|
|
24
|
+
* Support to choose optimizer: adam, adamw, adagrad, adadelta, rmsprop, sgd
|
|
25
|
+
* Support to choose activation functions: relu, elu, leaky_relu, tanh, sigmoid
|
|
26
|
+
* Support to set learning rate
|
|
27
|
+
* Fix issue where Format reported divide-by-zero warning for summ. stat. with perfectly balanced trees
|
|
28
|
+
* Fix issue where large serial trees were not correctly converted to downsampled extant-only trees
|
|
29
|
+
* Add settings/warnings to prevent nearly-zero-aged tips in extant-only from being treated as extinct
|
|
30
|
+
* Add torchvision to dependency list
|
|
31
|
+
* Replace deprecated PdfMerger with PdfWriter
|
|
32
|
+
* Support to use 2+ GPUs
|
|
33
|
+
* Reorganize documentation
|
|
34
|
+
* Documentation now has Overview -> Safe Usage section
|
|
35
|
+
* Documentation tutorial now contains better explanations of figures
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
**phyddle v0.2.2** -- 24.07.19
|
|
39
|
+
|
|
40
|
+
* Reduce pypi package size from 100MB to 75kB.
|
|
41
|
+
* Fix bug that caused lower CPI bound to be slightly misestimated.
|
|
42
|
+
* Improve scatter/coverage and training history plots.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
**phyddle v0.2.1** -- 24.07.11
|
|
46
|
+
|
|
47
|
+
* New support to save, load, and clean projects. Nice for collaborations! |:handshake:|
|
|
48
|
+
* Improve detection of replicate indexing in Simulate/Format.
|
|
49
|
+
* Better warnings/errors for invalid settings.
|
|
50
|
+
* Remove logit transformation from summary statistics for state frequencies (caused crash in some cases).
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
**phyddle v0.2.0** -- 24.03.28
|
|
54
|
+
|
|
55
|
+
* New support for categorical labels (e.g. model testing).
|
|
56
|
+
* New plots for categorical results.
|
|
57
|
+
* Add support for GPU + CUDA + PyTorch to accelerate Train and Estimate.
|
|
58
|
+
* Support for early stopping rule with Train.
|
|
59
|
+
* Improved printed feedback for all steps.
|
|
60
|
+
* Better plots for PCA and scatter plot results.
|
|
61
|
+
* Simpler default directory structure. Default phyddle configs, scripts, and outputs now share a proj directory in ./workspace.
|
|
62
|
+
* Better support for multiple project names within a workspace directory.
|
|
63
|
+
* Rewrote how Format/Estimate/Plot interact so simulated-test/empirical datasets are treated similarly.
|
|
64
|
+
* Better error checking and helpful messages for Simulate-Format config mismatches.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
**phyddle v0.1.1** -- 24.02.18
|
|
68
|
+
|
|
69
|
+
* Simpler directory settings for analyses
|
|
70
|
+
* Simpler settings application hierarchy
|
|
71
|
+
* Removed workspace and proj arguments
|
|
72
|
+
* Removed requirement for __config_default.py
|
|
73
|
+
* Repo directory restructuring, with clearer distinction between scripts and configs
|
|
74
|
+
* Added example simulation script for PhyloJunction
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
**phyddle v0.1.0** -- 24.02.08
|
|
78
|
+
|
|
79
|
+
* Update minor version from v0.0.10 to v0.1.0 |:partying_face:|
|
|
80
|
+
* Convert from Tensorflow to PyTorch on backend
|
|
81
|
+
* New support for scalable network architecture in Train
|
|
82
|
+
* New support for output precision for floating point output to files
|
|
83
|
+
* New summary csv report for Plot
|
|
84
|
+
* Better screen output for Train progress
|
|
85
|
+
* Better training history plot
|
|
86
|
+
* Better network architecture plot
|
|
87
|
+
* Better handling of cases where small tree size causes tree statistics to return 0/undefined/etc.
|
|
88
|
+
* Fix bug with non-sequential indices among simulated training examples
|
|
89
|
+
* Fix bug with Format for-loop to process summary statistics
|
|
90
|
+
* Switch summary statistics to log-scale
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
**phyddle v0.0.10** -- 23.11.10
|
|
94
|
+
|
|
95
|
+
* Basic GitHub Action tests working
|
|
96
|
+
* Format step faster (removed extraneous and costly deepcopy calls)
|
|
97
|
+
* Convert config_R.py to BiSSE example using R + castor
|
|
98
|
+
* Add external validation for phyddle vs. castor
|
|
99
|
+
* Improve config support
|
|
100
|
+
* Cleaning and commenting code
|
|
101
|
+
* Clean and finish sphinx documentation
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
**phyddle v0.0.9** -- 23.08.23
|
|
105
|
+
|
|
106
|
+
* Package now hosted through conda: https://anaconda.org/landismj/phyddle
|
|
107
|
+
* Better errors for missing files (configs, command, scripts, etc.)
|
|
108
|
+
* PyPI package installed through pip now autoinstalls dependencies
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
**phyddle v0.0.8** -- 23.08.16
|
|
112
|
+
|
|
113
|
+
* Minor fixes following 0.0.7 update
|
|
114
|
+
* Documentation visuals fixed
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
**phyddle v0.0.7** -- 23.08.16
|
|
118
|
+
|
|
119
|
+
* Format now splits training from test datasets.
|
|
120
|
+
* Estimate now applies trained model against test dataset.
|
|
121
|
+
* Steps now initialize using settings look-up table.
|
|
122
|
+
* Add PCA contour plot.
|
|
123
|
+
* Simplify filenames within projects for many steps.
|
|
124
|
+
* Timestamp step start/end/duration.
|
|
125
|
+
* Docs now hosted online at http://mlandis.github.io/phyddle
|
|
126
|
+
* Python package now hosted through pip at https://pypi.org/project/phyddle/
|
|
127
|
+
* Add bump2version supports
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
**phyddle v0.0.6** -- 23.08.09
|
|
131
|
+
|
|
132
|
+
* Refreshed documentation, plus added setting tables and glossary.
|
|
133
|
+
* Centralize management of settings.
|
|
134
|
+
* Settings now automatically apply default config, then user config, then command line arguments.
|
|
135
|
+
* Format only enodes for a single tree width category now.
|
|
136
|
+
* Format now downsamples and stores raw num. taxa for each data point.
|
|
137
|
+
* Allow for "all-but-X" CPUs for multiprocessing.
|
|
138
|
+
* Simulate wth --sim_more option to add new replicates to training examples.
|
|
139
|
+
* Format encodes all detected datasets by default.
|
|
140
|
+
* Support to allow scripts to simulate batches (>1) of replicates.
|
|
141
|
+
* Major overhaul of help docs, but not done.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
**phyddle v0.0.5** -- 23.07.30
|
|
145
|
+
|
|
146
|
+
* Pipeline steps renamed to: Simulate, Format, Train, Estimate, Plot
|
|
147
|
+
* Simulators now in scripts/sim/MASTER, scripts/sim/R, scripts/sim/Rev
|
|
148
|
+
* Streamlined handling of phyddle settings, internally
|
|
149
|
+
* Model configuration code moved outside phyddle
|
|
150
|
+
* MASTER simulator now outside phyddle, in scripts/sim/MASTER
|
|
151
|
+
* Complete source code reorg/rename
|
|
152
|
+
* Pipeline script now prints pipeline steps
|
|
153
|
+
* Support for granular management of flow of projects across pipeline steps
|
|
154
|
+
* Support asymmetric CPI calibration
|
|
155
|
+
* Better handling of FileNotFoundError related to Estimate step
|
|
156
|
+
* Much faster Formatting step (>100x speedup)
|
|
157
|
+
* Pipeline steps now generate logs in ``workspace/log/<project_name>`` to track phyddle is used during a project analysis
|
|
158
|
+
* Tested against Apple M1. Not an easy install, because unsupported by Tensorflow. Thanks Albert and Sean!
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
**phyddle v0.0.4** -- 23.07.09
|
|
162
|
+
|
|
163
|
+
* Simulating now supports command-line scripts
|
|
164
|
+
* Better backend support for alternative phylostate tensor encodings
|
|
165
|
+
* Simplified pipeline scripts and interface
|
|
166
|
+
* Docs improved to reflect current code design
|
|
167
|
+
* Tests now cover Simulating and Formatting
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
**phyddle v0.0.3** -- 23.07.02
|
|
171
|
+
|
|
172
|
+
* Sphinx configuration for documentation
|
|
173
|
+
* TestPyPI configuration for package deployment
|
|
174
|
+
* GitHub Actions configuration for unit testing
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
**phyddle v0.0.2** -- 23.06.25
|
|
178
|
+
|
|
179
|
+
* (first internal working version)
|
|
180
|
+
* trained network generates parameter estimates and coverage-calibrated prediction intervals (CPIs) for input datasets
|
|
181
|
+
* provides several state-dependent birth-death model types and variants (more to come)
|
|
182
|
+
* parallelized simulating, formatting, and learning
|
|
183
|
+
* encoding of phylogenetic-state tensor from serial and extant-only input with multiple states (CBLV+S and CDV+S extensions)
|
|
184
|
+
* encoding of auxiliary data tensor from automatically computed summary statistics and "known" parameter (e.g. sampling rate)
|
|
185
|
+
* HDF5 with gzip compression for tensor data
|
|
186
|
+
* shuffles and splits input tensors into training, test, validation, and calibration datasets for supervised learning
|
|
187
|
+
* builds network with convolution, pooling, and dense layers that match input tensors
|
|
188
|
+
* trains network and saves history
|
|
189
|
+
* automatic figure generation with Matplotlib
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
**phyddle v0.0.1** -- 23.03.16
|
|
193
|
+
|
|
194
|
+
* (initial development version)
|
|
Binary file
|
|
@@ -4,31 +4,31 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "phyddle"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Michael Landis", email="michael.landis@wustl.edu" },
|
|
10
10
|
{ name="Ammon Thompson", email="ammonthompson@gmail.com" },
|
|
11
11
|
]
|
|
12
|
-
description = "Software
|
|
12
|
+
description = "Software for phylogenetic model exploration with deep learning"
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
|
|
15
|
-
requires-python = ">=3.
|
|
15
|
+
requires-python = ">=3.12"
|
|
16
16
|
|
|
17
17
|
dependencies = [
|
|
18
|
-
"dendropy",
|
|
19
|
-
"graphviz",
|
|
20
|
-
"h5py",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"scikit-learn",
|
|
28
|
-
"scipy",
|
|
29
|
-
"torch",
|
|
30
|
-
"
|
|
31
|
-
"tqdm"
|
|
18
|
+
"dendropy>=4.6.0",
|
|
19
|
+
"graphviz>=0.20.0",
|
|
20
|
+
"h5py>=3.10.0",
|
|
21
|
+
"matplotlib>=3.8.2",
|
|
22
|
+
"numpy>=1.26.4",
|
|
23
|
+
"pandas>=2.2.0",
|
|
24
|
+
"pydot>=2.0.0",
|
|
25
|
+
"pypdf>=4.0.0",
|
|
26
|
+
"Pillow>=11.0.0",
|
|
27
|
+
"scikit-learn>=1.4.0",
|
|
28
|
+
"scipy>=1.14.0",
|
|
29
|
+
"torch>=2.2.0",
|
|
30
|
+
"torchview>=0.2.6",
|
|
31
|
+
"tqdm>=4.66.1"
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
classifiers = [
|
|
@@ -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-2025, Michael Landis and Ammon Thompson
|
|
9
9
|
License: MIT
|
|
10
10
|
"""
|
|
11
11
|
|
|
@@ -14,10 +14,10 @@ License: MIT
|
|
|
14
14
|
from multiprocessing import set_start_method
|
|
15
15
|
|
|
16
16
|
__project__ = 'phyddle'
|
|
17
|
-
__version__ = '0.
|
|
17
|
+
__version__ = '0.3.1'
|
|
18
18
|
__author__ = 'Michael Landis and Ammon Thompson'
|
|
19
|
-
__copyright__ = '(c) 2022-
|
|
20
|
-
__citation__ = '
|
|
19
|
+
__copyright__ = '(c) 2022-2025, Michael Landis and Ammon Thompson'
|
|
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
|
|
23
23
|
CONFIG_DEFAULT_FN = 'config_default.py'
|
|
@@ -39,9 +39,9 @@ def run():
|
|
|
39
39
|
if 'E' in step:
|
|
40
40
|
import phyddle.format as fmt
|
|
41
41
|
import phyddle.estimate as est
|
|
42
|
-
est_prefix = f"{my_args['est_dir']}/{my_args['est_prefix']}"
|
|
43
|
-
my_fmt = fmt.load(my_args)
|
|
44
|
-
my_fmt.encode_one(tmp_fn=est_prefix, idx=-1, save_phyenc_csv=True)
|
|
42
|
+
# est_prefix = f"{my_args['est_dir']}/{my_args['est_prefix']}"
|
|
43
|
+
# my_fmt = fmt.load(my_args)
|
|
44
|
+
# my_fmt.encode_one(tmp_fn=est_prefix, idx=-1, mode='emp', save_phyenc_csv=True)
|
|
45
45
|
my_est = est.load(my_args)
|
|
46
46
|
my_est.run()
|
|
47
47
|
|