PyEvoMotion 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- PyEvoMotion/cli.py +88 -11
- PyEvoMotion/core/base.py +373 -34
- PyEvoMotion/core/core.py +136 -43
- PyEvoMotion/core/parser.py +4 -1
- {pyevomotion-0.1.0.dist-info → pyevomotion-0.1.2.dist-info}/METADATA +72 -4
- pyevomotion-0.1.2.dist-info/RECORD +35 -0
- share/analyze_model_selection_accuracy.py +316 -0
- share/analyze_test_runs.py +436 -0
- share/anomalous_diffusion.pdf +0 -0
- share/confusion_matrix_heatmap.pdf +0 -0
- share/figUK.tsv +9949 -0
- share/figUK_plots.pdf +0 -0
- share/figUK_regression_results.json +65 -0
- share/figUK_run_args.json +14 -0
- share/figUK_stats.tsv +41 -0
- share/figUSA.tsv +9470 -0
- share/figUSA_plots.pdf +0 -0
- share/figUSA_regression_results.json +65 -0
- share/figUSA_run_args.json +14 -0
- share/figUSA_stats.tsv +34 -0
- share/figdataUK.tsv +10001 -0
- share/figdataUSA.tsv +10001 -0
- share/generate_sequences_from_synthdata.py +85 -0
- share/generate_sequences_from_test5_data.py +107 -0
- share/manuscript_figure.py +858 -43
- share/run_parallel_analysis.py +196 -0
- share/synth_figure.pdf +0 -0
- share/uk_time_windows.pdf +0 -0
- share/weekly_size.pdf +0 -0
- pyevomotion-0.1.0.dist-info/RECORD +0 -13
- {pyevomotion-0.1.0.dist-info → pyevomotion-0.1.2.dist-info}/WHEEL +0 -0
- {pyevomotion-0.1.0.dist-info → pyevomotion-0.1.2.dist-info}/entry_points.txt +0 -0
share/figUSA_plots.pdf
ADDED
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mean number of mutations model": {
|
|
3
|
+
"parameters": {
|
|
4
|
+
"m": 0.3258484867760181,
|
|
5
|
+
"b": 35.93995331972901
|
|
6
|
+
},
|
|
7
|
+
"confidence_intervals": {
|
|
8
|
+
"m": [
|
|
9
|
+
0.2883403045689692,
|
|
10
|
+
0.36335666898306695
|
|
11
|
+
],
|
|
12
|
+
"b": [
|
|
13
|
+
35.24158897313613,
|
|
14
|
+
36.63831766632188
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"expression": "mx + b",
|
|
18
|
+
"confidence_level": 0.95,
|
|
19
|
+
"r2": 0.9071591655422693
|
|
20
|
+
},
|
|
21
|
+
"scaled var number of mutations model": {
|
|
22
|
+
"linear_model": {
|
|
23
|
+
"parameters": {
|
|
24
|
+
"m": 0.2915484276133104
|
|
25
|
+
},
|
|
26
|
+
"confidence_intervals": {
|
|
27
|
+
"m": [
|
|
28
|
+
0.24003648883099504,
|
|
29
|
+
0.34306036639562576
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"expression": "mx",
|
|
33
|
+
"r2": 0.7243923706082853,
|
|
34
|
+
"confidence_level": 0.95
|
|
35
|
+
},
|
|
36
|
+
"power_law_model": {
|
|
37
|
+
"parameters": {
|
|
38
|
+
"d": 0.6926303070016426,
|
|
39
|
+
"alpha": 0.723863222453596
|
|
40
|
+
},
|
|
41
|
+
"confidence_intervals": {
|
|
42
|
+
"d": [
|
|
43
|
+
0.2633037580510857,
|
|
44
|
+
1.1219568559521995
|
|
45
|
+
],
|
|
46
|
+
"alpha": [
|
|
47
|
+
0.5238853883558428,
|
|
48
|
+
0.9238410565513493
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"expression": "d*x^alpha",
|
|
52
|
+
"r2": 0.7761009815632863,
|
|
53
|
+
"confidence_level": 0.95
|
|
54
|
+
},
|
|
55
|
+
"model_selection": {
|
|
56
|
+
"selected": "power_law",
|
|
57
|
+
"linear_AIC": 115.52445550217226,
|
|
58
|
+
"power_law_AIC": 110.93858154005544,
|
|
59
|
+
"delta_AIC_linear": 4.585873962116821,
|
|
60
|
+
"delta_AIC_power_law": 0.0,
|
|
61
|
+
"akaike_weight_linear": 0.0917096089306382,
|
|
62
|
+
"akaike_weight_power_law": 0.9082903910693618
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"seqs": "tests/data/test3/test3USA.fasta",
|
|
3
|
+
"meta": "share/figdataUSA.tsv",
|
|
4
|
+
"out": "share/figUSA",
|
|
5
|
+
"delta_t": "7D",
|
|
6
|
+
"show": false,
|
|
7
|
+
"export_plots": true,
|
|
8
|
+
"confidence_level": 0.95,
|
|
9
|
+
"length_filter": 0,
|
|
10
|
+
"kind": "total",
|
|
11
|
+
"filter": null,
|
|
12
|
+
"genome_positions": null,
|
|
13
|
+
"date_range": "2020-10-01..2021-08-01"
|
|
14
|
+
}
|
share/figUSA_stats.tsv
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
date mean number of mutations var number of mutations size dt_idx
|
|
2
|
+
2020-12-17 34.666666666666664 5.066666666666665 6 0.0
|
|
3
|
+
2020-12-24 33.976190476190474 3.7311265969802596 42 1.0
|
|
4
|
+
2020-12-31 34.19230769230769 2.546953046953047 78 2.0
|
|
5
|
+
2021-01-07 35.15238095238095 5.4188644688644745 105 3.0
|
|
6
|
+
2021-01-14 36.39887640449438 4.094236018536149 178 4.0
|
|
7
|
+
2021-01-21 37.67487684729064 4.557137979807834 203 5.0
|
|
8
|
+
2021-01-28 38.28421052631579 4.2745737583395 285 6.0
|
|
9
|
+
2021-02-04 38.86852589641434 4.146645418326694 251 7.0
|
|
10
|
+
2021-02-11 39.538699690402474 4.584677807049599 323 8.0
|
|
11
|
+
2021-02-18 40.1993769470405 5.741374610591899 321 9.0
|
|
12
|
+
2021-02-25 40.53168044077135 5.183385842351184 363 10.0
|
|
13
|
+
2021-03-04 40.43465045592705 7.520868856104973 329 11.0
|
|
14
|
+
2021-03-11 41.03508771929825 6.573545300200646 342 12.0
|
|
15
|
+
2021-03-18 41.24050632911393 7.756730707447153 395 13.0
|
|
16
|
+
2021-03-25 41.31578947368421 6.91238966982674 323 14.0
|
|
17
|
+
2021-04-01 41.463611859838274 6.357456108399504 371 15.0
|
|
18
|
+
2021-04-08 41.80653266331658 8.771040340240246 398 16.0
|
|
19
|
+
2021-04-15 42.03133903133903 8.596157916157916 351 17.0
|
|
20
|
+
2021-04-22 42.390243902439025 7.597295864262986 369 18.0
|
|
21
|
+
2021-04-29 42.429752066115704 7.4004383361490325 363 19.0
|
|
22
|
+
2021-05-06 42.70674486803519 7.531395549422115 341 20.0
|
|
23
|
+
2021-05-13 42.96060606060606 9.405738233397797 330 21.0
|
|
24
|
+
2021-05-20 43.21902017291066 11.183105395545644 347 22.0
|
|
25
|
+
2021-05-27 43.90149253731343 11.154937885423184 335 23.0
|
|
26
|
+
2021-06-03 43.76347305389221 11.958902015788244 334 24.0
|
|
27
|
+
2021-06-10 44.061624649859944 11.277090611525502 357 25.0
|
|
28
|
+
2021-06-17 44.22287390029326 11.103122304640328 341 26.0
|
|
29
|
+
2021-06-24 44.62145110410095 9.539791558519338 317 27.0
|
|
30
|
+
2021-07-01 44.512121212121215 11.460338951828312 330 28.0
|
|
31
|
+
2021-07-08 44.526490066225165 8.841488636113615 302 29.0
|
|
32
|
+
2021-07-15 44.91830065359477 9.275270545376623 306 30.0
|
|
33
|
+
2021-07-22 44.656462585034014 9.31161338255439 294 31.0
|
|
34
|
+
2021-07-29 45.55797101449275 9.13895059769385 138 32.0
|