gpvolve-v2 1.0.0__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.
Files changed (55) hide show
  1. gpvolve_v2-1.0.0/Cargo.lock +391 -0
  2. gpvolve_v2-1.0.0/Cargo.toml +10 -0
  3. gpvolve_v2-1.0.0/LICENSE +21 -0
  4. gpvolve_v2-1.0.0/PKG-INFO +107 -0
  5. gpvolve_v2-1.0.0/README.md +66 -0
  6. gpvolve_v2-1.0.0/crates/gpvolve-core/Cargo.toml +25 -0
  7. gpvolve_v2-1.0.0/crates/gpvolve-core/src/lib.rs +19 -0
  8. gpvolve_v2-1.0.0/pyproject.toml +142 -0
  9. gpvolve_v2-1.0.0/python/gpvolve/__init__.py +87 -0
  10. gpvolve_v2-1.0.0/python/gpvolve/_rust.pyi +6 -0
  11. gpvolve_v2-1.0.0/python/gpvolve/_version.py +1 -0
  12. gpvolve_v2-1.0.0/python/gpvolve/analysis/__init__.py +9 -0
  13. gpvolve_v2-1.0.0/python/gpvolve/analysis/peaks.py +80 -0
  14. gpvolve_v2-1.0.0/python/gpvolve/cluster/__init__.py +12 -0
  15. gpvolve_v2-1.0.0/python/gpvolve/cluster/coarse_grain.py +52 -0
  16. gpvolve_v2-1.0.0/python/gpvolve/cluster/metastable.py +27 -0
  17. gpvolve_v2-1.0.0/python/gpvolve/cluster/pcca.py +155 -0
  18. gpvolve_v2-1.0.0/python/gpvolve/exceptions.py +23 -0
  19. gpvolve_v2-1.0.0/python/gpvolve/fixation/__init__.py +29 -0
  20. gpvolve_v2-1.0.0/python/gpvolve/fixation/_kernels.py +217 -0
  21. gpvolve_v2-1.0.0/python/gpvolve/fixation/bloom.py +32 -0
  22. gpvolve_v2-1.0.0/python/gpvolve/fixation/custom.py +29 -0
  23. gpvolve_v2-1.0.0/python/gpvolve/fixation/mccandlish.py +32 -0
  24. gpvolve_v2-1.0.0/python/gpvolve/fixation/moran.py +26 -0
  25. gpvolve_v2-1.0.0/python/gpvolve/fixation/protocol.py +96 -0
  26. gpvolve_v2-1.0.0/python/gpvolve/fixation/sswm.py +22 -0
  27. gpvolve_v2-1.0.0/python/gpvolve/fixation/weak_mutation.py +21 -0
  28. gpvolve_v2-1.0.0/python/gpvolve/io/__init__.py +16 -0
  29. gpvolve_v2-1.0.0/python/gpvolve/io/json.py +147 -0
  30. gpvolve_v2-1.0.0/python/gpvolve/io/npz.py +88 -0
  31. gpvolve_v2-1.0.0/python/gpvolve/io/pickle.py +29 -0
  32. gpvolve_v2-1.0.0/python/gpvolve/markov/__init__.py +26 -0
  33. gpvolve_v2-1.0.0/python/gpvolve/markov/msm.py +84 -0
  34. gpvolve_v2-1.0.0/python/gpvolve/markov/spectral.py +126 -0
  35. gpvolve_v2-1.0.0/python/gpvolve/markov/stationary.py +108 -0
  36. gpvolve_v2-1.0.0/python/gpvolve/markov/transition.py +177 -0
  37. gpvolve_v2-1.0.0/python/gpvolve/markov/validation.py +72 -0
  38. gpvolve_v2-1.0.0/python/gpvolve/paths/__init__.py +26 -0
  39. gpvolve_v2-1.0.0/python/gpvolve/paths/flux.py +123 -0
  40. gpvolve_v2-1.0.0/python/gpvolve/paths/greedy.py +79 -0
  41. gpvolve_v2-1.0.0/python/gpvolve/paths/shortest.py +85 -0
  42. gpvolve_v2-1.0.0/python/gpvolve/paths/stochastic.py +270 -0
  43. gpvolve_v2-1.0.0/python/gpvolve/paths/tpt.py +166 -0
  44. gpvolve_v2-1.0.0/python/gpvolve/pyplot/__init__.py +14 -0
  45. gpvolve_v2-1.0.0/python/gpvolve/pyplot/flux.py +34 -0
  46. gpvolve_v2-1.0.0/python/gpvolve/pyplot/landscape.py +40 -0
  47. gpvolve_v2-1.0.0/python/gpvolve/pyplot/network.py +55 -0
  48. gpvolve_v2-1.0.0/python/gpvolve/pyplot/timescales.py +35 -0
  49. gpvolve_v2-1.0.0/python/gpvolve/simulate/__init__.py +13 -0
  50. gpvolve_v2-1.0.0/python/gpvolve/simulate/gillespie.py +91 -0
  51. gpvolve_v2-1.0.0/python/gpvolve/simulate/slim.py +33 -0
  52. gpvolve_v2-1.0.0/python/gpvolve/simulate/tskit_io.py +30 -0
  53. gpvolve_v2-1.0.0/python/gpvolve/simulate/wright_fisher.py +97 -0
  54. gpvolve_v2-1.0.0/python/gpvolve/streamlit_app/__init__.py +1 -0
  55. gpvolve_v2-1.0.0/python/gpvolve/types.py +61 -0
@@ -0,0 +1,391 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
10
+
11
+ [[package]]
12
+ name = "cfg-if"
13
+ version = "1.0.4"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
16
+
17
+ [[package]]
18
+ name = "crossbeam-deque"
19
+ version = "0.8.6"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
22
+ dependencies = [
23
+ "crossbeam-epoch",
24
+ "crossbeam-utils",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "crossbeam-epoch"
29
+ version = "0.9.18"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
32
+ dependencies = [
33
+ "crossbeam-utils",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "crossbeam-utils"
38
+ version = "0.8.21"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
41
+
42
+ [[package]]
43
+ name = "either"
44
+ version = "1.15.0"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
47
+
48
+ [[package]]
49
+ name = "getrandom"
50
+ version = "0.3.4"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
53
+ dependencies = [
54
+ "cfg-if",
55
+ "libc",
56
+ "r-efi",
57
+ "wasip2",
58
+ ]
59
+
60
+ [[package]]
61
+ name = "gpvolve-core"
62
+ version = "1.0.0"
63
+ dependencies = [
64
+ "ndarray",
65
+ "numpy",
66
+ "pyo3",
67
+ "rand",
68
+ "rand_pcg",
69
+ "rayon",
70
+ "rustc-hash",
71
+ ]
72
+
73
+ [[package]]
74
+ name = "heck"
75
+ version = "0.5.0"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
78
+
79
+ [[package]]
80
+ name = "libc"
81
+ version = "0.2.186"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
84
+
85
+ [[package]]
86
+ name = "matrixmultiply"
87
+ version = "0.3.10"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
90
+ dependencies = [
91
+ "autocfg",
92
+ "rawpointer",
93
+ ]
94
+
95
+ [[package]]
96
+ name = "ndarray"
97
+ version = "0.17.2"
98
+ source = "registry+https://github.com/rust-lang/crates.io-index"
99
+ checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
100
+ dependencies = [
101
+ "matrixmultiply",
102
+ "num-complex",
103
+ "num-integer",
104
+ "num-traits",
105
+ "portable-atomic",
106
+ "portable-atomic-util",
107
+ "rawpointer",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "num-complex"
112
+ version = "0.4.6"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
115
+ dependencies = [
116
+ "num-traits",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "num-integer"
121
+ version = "0.1.46"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
124
+ dependencies = [
125
+ "num-traits",
126
+ ]
127
+
128
+ [[package]]
129
+ name = "num-traits"
130
+ version = "0.2.19"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
133
+ dependencies = [
134
+ "autocfg",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "numpy"
139
+ version = "0.28.0"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "778da78c64ddc928ebf5ad9df5edf0789410ff3bdbf3619aed51cd789a6af1e2"
142
+ dependencies = [
143
+ "libc",
144
+ "ndarray",
145
+ "num-complex",
146
+ "num-integer",
147
+ "num-traits",
148
+ "pyo3",
149
+ "pyo3-build-config",
150
+ "rustc-hash",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "once_cell"
155
+ version = "1.21.4"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
158
+
159
+ [[package]]
160
+ name = "portable-atomic"
161
+ version = "1.13.1"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
164
+
165
+ [[package]]
166
+ name = "portable-atomic-util"
167
+ version = "0.2.7"
168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
169
+ checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
170
+ dependencies = [
171
+ "portable-atomic",
172
+ ]
173
+
174
+ [[package]]
175
+ name = "ppv-lite86"
176
+ version = "0.2.21"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
179
+ dependencies = [
180
+ "zerocopy",
181
+ ]
182
+
183
+ [[package]]
184
+ name = "proc-macro2"
185
+ version = "1.0.106"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
188
+ dependencies = [
189
+ "unicode-ident",
190
+ ]
191
+
192
+ [[package]]
193
+ name = "pyo3"
194
+ version = "0.28.3"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
197
+ dependencies = [
198
+ "libc",
199
+ "once_cell",
200
+ "portable-atomic",
201
+ "pyo3-build-config",
202
+ "pyo3-ffi",
203
+ "pyo3-macros",
204
+ ]
205
+
206
+ [[package]]
207
+ name = "pyo3-build-config"
208
+ version = "0.28.3"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
211
+ dependencies = [
212
+ "target-lexicon",
213
+ ]
214
+
215
+ [[package]]
216
+ name = "pyo3-ffi"
217
+ version = "0.28.3"
218
+ source = "registry+https://github.com/rust-lang/crates.io-index"
219
+ checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
220
+ dependencies = [
221
+ "libc",
222
+ "pyo3-build-config",
223
+ ]
224
+
225
+ [[package]]
226
+ name = "pyo3-macros"
227
+ version = "0.28.3"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
230
+ dependencies = [
231
+ "proc-macro2",
232
+ "pyo3-macros-backend",
233
+ "quote",
234
+ "syn",
235
+ ]
236
+
237
+ [[package]]
238
+ name = "pyo3-macros-backend"
239
+ version = "0.28.3"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
242
+ dependencies = [
243
+ "heck",
244
+ "proc-macro2",
245
+ "pyo3-build-config",
246
+ "quote",
247
+ "syn",
248
+ ]
249
+
250
+ [[package]]
251
+ name = "quote"
252
+ version = "1.0.45"
253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
254
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
255
+ dependencies = [
256
+ "proc-macro2",
257
+ ]
258
+
259
+ [[package]]
260
+ name = "r-efi"
261
+ version = "5.3.0"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
264
+
265
+ [[package]]
266
+ name = "rand"
267
+ version = "0.9.4"
268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
269
+ checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"
270
+ dependencies = [
271
+ "rand_chacha",
272
+ "rand_core",
273
+ ]
274
+
275
+ [[package]]
276
+ name = "rand_chacha"
277
+ version = "0.9.0"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
280
+ dependencies = [
281
+ "ppv-lite86",
282
+ "rand_core",
283
+ ]
284
+
285
+ [[package]]
286
+ name = "rand_core"
287
+ version = "0.9.5"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
290
+ dependencies = [
291
+ "getrandom",
292
+ ]
293
+
294
+ [[package]]
295
+ name = "rand_pcg"
296
+ version = "0.9.0"
297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
298
+ checksum = "b48ac3f7ffaab7fac4d2376632268aa5f89abdb55f7ebf8f4d11fffccb2320f7"
299
+ dependencies = [
300
+ "rand_core",
301
+ ]
302
+
303
+ [[package]]
304
+ name = "rawpointer"
305
+ version = "0.2.1"
306
+ source = "registry+https://github.com/rust-lang/crates.io-index"
307
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
308
+
309
+ [[package]]
310
+ name = "rayon"
311
+ version = "1.12.0"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
314
+ dependencies = [
315
+ "either",
316
+ "rayon-core",
317
+ ]
318
+
319
+ [[package]]
320
+ name = "rayon-core"
321
+ version = "1.13.0"
322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
323
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
324
+ dependencies = [
325
+ "crossbeam-deque",
326
+ "crossbeam-utils",
327
+ ]
328
+
329
+ [[package]]
330
+ name = "rustc-hash"
331
+ version = "2.1.2"
332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
333
+ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
334
+
335
+ [[package]]
336
+ name = "syn"
337
+ version = "2.0.117"
338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
339
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
340
+ dependencies = [
341
+ "proc-macro2",
342
+ "quote",
343
+ "unicode-ident",
344
+ ]
345
+
346
+ [[package]]
347
+ name = "target-lexicon"
348
+ version = "0.13.5"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
351
+
352
+ [[package]]
353
+ name = "unicode-ident"
354
+ version = "1.0.24"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
357
+
358
+ [[package]]
359
+ name = "wasip2"
360
+ version = "1.0.3+wasi-0.2.9"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
363
+ dependencies = [
364
+ "wit-bindgen",
365
+ ]
366
+
367
+ [[package]]
368
+ name = "wit-bindgen"
369
+ version = "0.57.1"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
372
+
373
+ [[package]]
374
+ name = "zerocopy"
375
+ version = "0.8.48"
376
+ source = "registry+https://github.com/rust-lang/crates.io-index"
377
+ checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
378
+ dependencies = [
379
+ "zerocopy-derive",
380
+ ]
381
+
382
+ [[package]]
383
+ name = "zerocopy-derive"
384
+ version = "0.8.48"
385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
386
+ checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
387
+ dependencies = [
388
+ "proc-macro2",
389
+ "quote",
390
+ "syn",
391
+ ]
@@ -0,0 +1,10 @@
1
+ [workspace]
2
+ members = ["crates/gpvolve-core"]
3
+ resolver = "2"
4
+
5
+ [workspace.package]
6
+ version = "1.0.0"
7
+ edition = "2021"
8
+ rust-version = "1.75"
9
+ license = "MIT"
10
+ authors = ["Luis Perez"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Luis Perez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,107 @@
1
+ Metadata-Version: 2.4
2
+ Name: gpvolve-v2
3
+ Version: 1.0.0
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Intended Audience :: Science/Research
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Rust
13
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
14
+ Requires-Dist: numpy>=2.0
15
+ Requires-Dist: scipy>=1.13
16
+ Requires-Dist: networkx>=3.6
17
+ Requires-Dist: gpmap-v2>=1.0
18
+ Requires-Dist: gpgraph-v2>=1.0
19
+ Requires-Dist: tqdm>=4.67
20
+ Requires-Dist: typing-extensions>=4.12
21
+ Requires-Dist: pyarrow>=14 ; extra == 'parquet'
22
+ Requires-Dist: matplotlib>=3.10 ; extra == 'plot'
23
+ Requires-Dist: pyslim>=1.0 ; extra == 'sim'
24
+ Requires-Dist: tskit>=0.5 ; extra == 'sim'
25
+ Requires-Dist: streamlit>=1.56 ; extra == 'streamlit'
26
+ Requires-Dist: matplotlib>=3.10 ; extra == 'streamlit'
27
+ Provides-Extra: parquet
28
+ Provides-Extra: plot
29
+ Provides-Extra: sim
30
+ Provides-Extra: streamlit
31
+ License-File: LICENSE
32
+ Summary: Markov-chain evolutionary dynamics on genotype-phenotype maps. Rust-accelerated.
33
+ Keywords: genotype,phenotype,fitness-landscape,markov,evolution,transition-path-theory,fixation
34
+ Author-email: Luis Perez <lperezmo@users.noreply.github.com>
35
+ Requires-Python: >=3.11
36
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
37
+ Project-URL: Homepage, https://github.com/lperezmo/gpvolve-v2
38
+ Project-URL: Issues, https://github.com/lperezmo/gpvolve-v2/issues
39
+ Project-URL: Repository, https://github.com/lperezmo/gpvolve-v2
40
+
41
+ # gpvolve-v2
42
+
43
+ [![CI](https://github.com/lperezmo/gpvolve-v2/actions/workflows/ci.yml/badge.svg)](https://github.com/lperezmo/gpvolve-v2/actions/workflows/ci.yml)
44
+ [![Documentation](https://github.com/lperezmo/gpvolve-v2/actions/workflows/docs.yml/badge.svg)](https://lperezmo.github.io/gpvolve-v2/)
45
+ [![PyPI](https://img.shields.io/pypi/v/gpvolve-v2.svg)](https://pypi.org/project/gpvolve-v2/)
46
+ [![Python](https://img.shields.io/pypi/pyversions/gpvolve-v2.svg)](https://pypi.org/project/gpvolve-v2/)
47
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
48
+
49
+ Markov-chain evolutionary dynamics on genotype-phenotype maps. Rust-accelerated.
50
+
51
+ gpvolve-v2 lifts a [gpgraph-v2](https://github.com/lperezmo/gpgraph-v2) `GenotypePhenotypeGraph`
52
+ into a Markov state model and analyzes evolutionary dynamics on top of it. Given a fitness
53
+ function and a fixation model (SSWM, Moran, McCandlish, Bloom DMS, weak-mutation), it builds
54
+ a row-stochastic transition matrix and computes stationary distributions, relaxation
55
+ timescales, mean first passage times, transition path theory committors and reactive flux,
56
+ dominant pathways, stochastic walker trajectories, PCCA+ metastable sets, and fitness peaks.
57
+
58
+ This is a clean-break rewrite of [harmslab/gpvolve](https://github.com/harmslab/gpvolve)
59
+ (dormant since 2020) with selective architectural inspiration from the
60
+ [harmsm/gpvolve](https://github.com/harmsm/gpvolve) fork (dormant since 2022). Hot paths
61
+ (transition matrix assembly and stochastic walker sampling) live in Rust via PyO3 + rayon;
62
+ spectral analysis stays in scipy.
63
+
64
+ ## Why v2
65
+
66
+ - **Drops the dormant `msmtools` dependency.** PCCA+ and TPT are reimplemented natively.
67
+ - **Fast.** Transition matrix assembly and walker sampling run in Rust with rayon parallelism.
68
+ - **Sound convergence.** Stochastic path sampling stops on a real criterion (effective sample
69
+ size + Gelman-Rubin R-hat), not a Euclidean distance heuristic.
70
+ - **Typed.** Full type hints, `mypy --strict` in CI.
71
+ - **Modern tooling.** `uv` + `maturin` + `pyproject.toml`. Releases via
72
+ `python-semantic-release`. OIDC-based PyPI publishing.
73
+ - **Consumes the v2 family.** Hard deps on `gpmap-v2` and `gpgraph-v2`; speaks their locked
74
+ `SCHEMA.md` contracts.
75
+
76
+ ## Install
77
+
78
+ ```bash
79
+ pip install gpvolve-v2
80
+ ```
81
+
82
+ Or with uv:
83
+
84
+ ```bash
85
+ uv add gpvolve-v2
86
+ ```
87
+
88
+ Plotting support is optional. For matplotlib:
89
+
90
+ ```bash
91
+ pip install "gpvolve-v2[plot]"
92
+ ```
93
+
94
+ Optional simulation backends (SLiM, tskit):
95
+
96
+ ```bash
97
+ pip install "gpvolve-v2[sim]"
98
+ ```
99
+
100
+ Python 3.11+. Prebuilt wheels ship for Linux (x86_64, aarch64), macOS (x86_64, aarch64),
101
+ and Windows (x64).
102
+
103
+ ## Status
104
+
105
+ Pre-release. See `CHANGELOG.md` for progress and `docs/migration/from-v1.md` for the
106
+ v1 to v2 API map.
107
+
@@ -0,0 +1,66 @@
1
+ # gpvolve-v2
2
+
3
+ [![CI](https://github.com/lperezmo/gpvolve-v2/actions/workflows/ci.yml/badge.svg)](https://github.com/lperezmo/gpvolve-v2/actions/workflows/ci.yml)
4
+ [![Documentation](https://github.com/lperezmo/gpvolve-v2/actions/workflows/docs.yml/badge.svg)](https://lperezmo.github.io/gpvolve-v2/)
5
+ [![PyPI](https://img.shields.io/pypi/v/gpvolve-v2.svg)](https://pypi.org/project/gpvolve-v2/)
6
+ [![Python](https://img.shields.io/pypi/pyversions/gpvolve-v2.svg)](https://pypi.org/project/gpvolve-v2/)
7
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
+
9
+ Markov-chain evolutionary dynamics on genotype-phenotype maps. Rust-accelerated.
10
+
11
+ gpvolve-v2 lifts a [gpgraph-v2](https://github.com/lperezmo/gpgraph-v2) `GenotypePhenotypeGraph`
12
+ into a Markov state model and analyzes evolutionary dynamics on top of it. Given a fitness
13
+ function and a fixation model (SSWM, Moran, McCandlish, Bloom DMS, weak-mutation), it builds
14
+ a row-stochastic transition matrix and computes stationary distributions, relaxation
15
+ timescales, mean first passage times, transition path theory committors and reactive flux,
16
+ dominant pathways, stochastic walker trajectories, PCCA+ metastable sets, and fitness peaks.
17
+
18
+ This is a clean-break rewrite of [harmslab/gpvolve](https://github.com/harmslab/gpvolve)
19
+ (dormant since 2020) with selective architectural inspiration from the
20
+ [harmsm/gpvolve](https://github.com/harmsm/gpvolve) fork (dormant since 2022). Hot paths
21
+ (transition matrix assembly and stochastic walker sampling) live in Rust via PyO3 + rayon;
22
+ spectral analysis stays in scipy.
23
+
24
+ ## Why v2
25
+
26
+ - **Drops the dormant `msmtools` dependency.** PCCA+ and TPT are reimplemented natively.
27
+ - **Fast.** Transition matrix assembly and walker sampling run in Rust with rayon parallelism.
28
+ - **Sound convergence.** Stochastic path sampling stops on a real criterion (effective sample
29
+ size + Gelman-Rubin R-hat), not a Euclidean distance heuristic.
30
+ - **Typed.** Full type hints, `mypy --strict` in CI.
31
+ - **Modern tooling.** `uv` + `maturin` + `pyproject.toml`. Releases via
32
+ `python-semantic-release`. OIDC-based PyPI publishing.
33
+ - **Consumes the v2 family.** Hard deps on `gpmap-v2` and `gpgraph-v2`; speaks their locked
34
+ `SCHEMA.md` contracts.
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install gpvolve-v2
40
+ ```
41
+
42
+ Or with uv:
43
+
44
+ ```bash
45
+ uv add gpvolve-v2
46
+ ```
47
+
48
+ Plotting support is optional. For matplotlib:
49
+
50
+ ```bash
51
+ pip install "gpvolve-v2[plot]"
52
+ ```
53
+
54
+ Optional simulation backends (SLiM, tskit):
55
+
56
+ ```bash
57
+ pip install "gpvolve-v2[sim]"
58
+ ```
59
+
60
+ Python 3.11+. Prebuilt wheels ship for Linux (x86_64, aarch64), macOS (x86_64, aarch64),
61
+ and Windows (x64).
62
+
63
+ ## Status
64
+
65
+ Pre-release. See `CHANGELOG.md` for progress and `docs/migration/from-v1.md` for the
66
+ v1 to v2 API map.
@@ -0,0 +1,25 @@
1
+ [package]
2
+ name = "gpvolve-core"
3
+ version.workspace = true
4
+ edition.workspace = true
5
+ rust-version.workspace = true
6
+ license.workspace = true
7
+ authors.workspace = true
8
+ description = "Rust hot-path primitives for gpvolve-v2 (transition matrix, walker sampling, committor solver)."
9
+
10
+ [lib]
11
+ name = "gpvolve_core"
12
+ crate-type = ["cdylib", "rlib"]
13
+
14
+ [dependencies]
15
+ pyo3 = { version = "0.28", features = ["abi3-py311", "extension-module"] }
16
+ numpy = "0.28"
17
+ ndarray = "0.17"
18
+ rayon = "1.11"
19
+ rand = "0.9"
20
+ rand_pcg = "0.9"
21
+ rustc-hash = "2"
22
+
23
+ [features]
24
+ default = []
25
+ extension-module = ["pyo3/extension-module"]
@@ -0,0 +1,19 @@
1
+ //! gpvolve-core: Rust hot-path primitives for gpvolve-v2.
2
+ //!
3
+ //! Exposed as `gpvolve._rust` inside the Python package.
4
+ //!
5
+ //! Scope (locked with Luis 2026-05-16):
6
+ //! - Transition matrix COO assembly with vectorized fixation kernels.
7
+ //! - Stochastic path sampling with per-walker rng streams.
8
+ //! - Sparse iterative committor solver for large MSMs.
9
+ //!
10
+ //! Pure-Python paths remain authoritative; Rust kernels accelerate the hot
11
+ //! loops once the Python implementation is feature-complete and tested.
12
+
13
+ use pyo3::prelude::*;
14
+
15
+ #[pymodule]
16
+ fn _rust(m: &Bound<'_, PyModule>) -> PyResult<()> {
17
+ m.add("__version__", env!("CARGO_PKG_VERSION"))?;
18
+ Ok(())
19
+ }