bella-companion 0.0.11__tar.gz → 0.0.13__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.

Potentially problematic release.


This version of bella-companion might be problematic. Click here for more details.

Files changed (77) hide show
  1. {bella_companion-0.0.11 → bella_companion-0.0.13}/PKG-INFO +2 -2
  2. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/run_beast.py +9 -14
  3. {bella_companion-0.0.11 → bella_companion-0.0.13}/pyproject.toml +2 -2
  4. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/__init__.py +0 -0
  5. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/cli.py +0 -0
  6. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/__init__.py +0 -0
  7. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/__pycache__/run_beast.cpython-311.pyc +0 -0
  8. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/__pycache__/run_mlp.cpython-311.pyc +0 -0
  9. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/__pycache__/run_nonparametric.cpython-311.pyc +0 -0
  10. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/__pycache__/summarize_logs.cpython-311.pyc +0 -0
  11. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/data/change_times.csv +0 -0
  12. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/data/traits.csv +0 -0
  13. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/data/trees.nwk +0 -0
  14. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/results.py +0 -0
  15. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/fbd_empirical/summarize_logs.py +0 -0
  16. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__init__.py +0 -0
  17. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/__init__.cpython-310.pyc +0 -0
  18. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/__init__.cpython-311.pyc +0 -0
  19. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/features.cpython-310.pyc +0 -0
  20. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/features.cpython-311.pyc +0 -0
  21. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/generate_data.cpython-310.pyc +0 -0
  22. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/generate_data.cpython-311.pyc +0 -0
  23. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/run_beast.cpython-311.pyc +0 -0
  24. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/__pycache__/summarize_logs.cpython-311.pyc +0 -0
  25. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/features.py +0 -0
  26. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__init__.py +0 -0
  27. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/__init__.cpython-311.pyc +0 -0
  28. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/epi_explainations.cpython-311.pyc +0 -0
  29. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/epi_predictions.cpython-311.pyc +0 -0
  30. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/epi_simulations.cpython-311.pyc +0 -0
  31. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/fbd_explainations.cpython-311.pyc +0 -0
  32. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/fbd_predictions.cpython-311.pyc +0 -0
  33. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/fbd_simulations.cpython-311.pyc +0 -0
  34. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/figure1.cpython-311.pyc +0 -0
  35. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/plot.cpython-311.pyc +0 -0
  36. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/scenarios.cpython-311.pyc +0 -0
  37. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/__pycache__/utils.cpython-311.pyc +0 -0
  38. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/epi_multitype_results.py +0 -0
  39. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/epi_skyline_results.py +0 -0
  40. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/explain/__init__.py +0 -0
  41. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/explain/pdp.py +0 -0
  42. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/explain/shap.py +0 -0
  43. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/fbd_2traits_results.py +0 -0
  44. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/fbd_no_traits_results.py +0 -0
  45. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/scenarios.py +0 -0
  46. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/figures/utils.py +0 -0
  47. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/generate_data.py +0 -0
  48. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/generate_figures.py +0 -0
  49. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/metrics.py +0 -0
  50. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/run_beast.py +0 -0
  51. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__init__.py +0 -0
  52. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/__init__.cpython-310.pyc +0 -0
  53. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/__init__.cpython-311.pyc +0 -0
  54. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/common.cpython-310.pyc +0 -0
  55. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/common.cpython-311.pyc +0 -0
  56. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/epi_multitype.cpython-310.pyc +0 -0
  57. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/epi_multitype.cpython-311.pyc +0 -0
  58. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/epi_skyline.cpython-310.pyc +0 -0
  59. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/epi_skyline.cpython-311.pyc +0 -0
  60. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/fbd_2traits.cpython-310.pyc +0 -0
  61. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/fbd_2traits.cpython-311.pyc +0 -0
  62. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/fbd_no_traits.cpython-310.pyc +0 -0
  63. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/fbd_no_traits.cpython-311.pyc +0 -0
  64. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/scenario.cpython-310.pyc +0 -0
  65. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/scenario.cpython-311.pyc +0 -0
  66. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/__pycache__/utils.cpython-311.pyc +0 -0
  67. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/common.py +0 -0
  68. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/epi_multitype.py +0 -0
  69. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/epi_skyline.py +0 -0
  70. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/fbd_2traits.py +0 -0
  71. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/fbd_no_traits.py +0 -0
  72. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/scenarios/scenario.py +0 -0
  73. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/simulations/summarize_logs.py +0 -0
  74. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/utils/__init__.py +0 -0
  75. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/utils/beast.py +0 -0
  76. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/utils/explain.py +0 -0
  77. {bella_companion-0.0.11 → bella_companion-0.0.13}/bella_companion/utils/slurm.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bella-companion
3
- Version: 0.0.11
3
+ Version: 0.0.13
4
4
  Summary:
5
5
  Author: gabriele-marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: arviz (>=0.22.0,<0.23.0)
13
- Requires-Dist: bella-lumiere (>=0.0.13,<0.0.14)
13
+ Requires-Dist: bella-lumiere (>=0.0.14,<0.0.15)
14
14
  Requires-Dist: dotenv (>=0.9.9,<0.10.0)
15
15
  Requires-Dist: phylogenie (>=2.1.30,<3.0.0)
16
16
  Requires-Dist: seaborn (>=0.13.2,<0.14.0)
@@ -22,9 +22,6 @@ def _get_migration_rates_init(types: list[str], init_rate: float = 1) -> str:
22
22
 
23
23
 
24
24
  def run_beast():
25
- from dotenv import load_dotenv
26
-
27
- load_dotenv()
28
25
  base_output_dir = Path(os.environ["BELLA_BEAST_OUTPUT_DIR"])
29
26
  output_dir = base_output_dir / "fbd-empirical"
30
27
  os.makedirs(output_dir, exist_ok=True)
@@ -42,18 +39,16 @@ def run_beast():
42
39
  change_times = (
43
40
  pl.read_csv(change_times_file, has_header=False).to_series().to_numpy()
44
41
  )
42
+ time_bins = [0, *change_times]
43
+ T = len(time_bins)
45
44
 
46
45
  types: list[str] = sorted(traits["type"].unique())
47
46
  types.remove("?")
48
47
  N = len(types)
49
48
 
50
- time_predictor = " ".join(list(map(str, np.repeat([0, *change_times], N))))
51
- log10BM_predictor = " ".join(
52
- [t.split("_")[0] for t in types] * (len(change_times) + 1)
53
- )
54
- midlat_predictor = " ".join(
55
- [t.split("_")[1] for t in types] * (len(change_times) + 1)
56
- )
49
+ time_predictor = " ".join(list(map(str, np.repeat(time_bins, N))))
50
+ log10BM_predictor = " ".join([t.split("_")[0] for t in types] * T)
51
+ midlat_predictor = " ".join([t.split("_")[1] for t in types] * T)
57
52
 
58
53
  job_ids = {}
59
54
  for i, tree in enumerate(tqdm(trees)):
@@ -66,19 +61,19 @@ def run_beast():
66
61
  f"-D birthRateUpper=5",
67
62
  f"-D deathRateUpper=5",
68
63
  f"-D samplingRateUpper=5",
69
- f'-D samplingRateInit="{" ".join(["2.5"] * N)}"',
64
+ f'-D samplingRateInit="{" ".join(["2.5"] * T)}"',
70
65
  f"-D migrationRateUpper=5",
71
66
  f'-D migrationRateInit="{_get_migration_rates_init(types, 2.5)}"',
72
67
  f'-D nodes="16 8"',
73
68
  f'-D layersRange="0,1,2"',
74
- f"-D tree_file={tree_file}",
69
+ f"-D treeFile={tree_file}",
75
70
  f"-D treeIndex={i}",
76
71
  f"-D changeTimesFile={change_times_file}",
77
72
  f"-D traitsFile={traits_file}",
78
73
  f"-D processLength={process_length}",
79
74
  f'-D timePredictor="{time_predictor}"',
80
- f'-D log10BM_predictor="{log10BM_predictor}"',
81
- f'-D midlat_predictor="{midlat_predictor}"',
75
+ f'-D log10BMPredictor="{log10BM_predictor}"',
76
+ f'-D midlatPredictor="{midlat_predictor}"',
82
77
  f"-prefix {output_dir}{os.sep}",
83
78
  str(Path(os.environ["BELLA_BEAST_CONFIGS_DIR"]) / "fbd-empirical.xml"),
84
79
  ]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bella-companion"
3
- version = "0.0.11"
3
+ version = "0.0.13"
4
4
  description = ""
5
5
  authors = ["gabriele-marino <gabmarino.8601@gmail.com>"]
6
6
 
@@ -8,7 +8,7 @@ authors = ["gabriele-marino <gabmarino.8601@gmail.com>"]
8
8
  python = "^3.10"
9
9
 
10
10
  arviz = "^0.22.0"
11
- bella-lumiere = "^0.0.13"
11
+ bella-lumiere = "^0.0.14"
12
12
  dotenv = "^0.9.9"
13
13
  phylogenie = "^2.1.30"
14
14
  seaborn = "^0.13.2"