bella-companion 0.0.24__py3-none-any.whl → 0.0.26__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.

Potentially problematic release.


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

@@ -21,16 +21,16 @@ def run_beast():
21
21
  all_predictor_files = ",".join(glob(str(predictors_dir / "all" / "*.tsv")))
22
22
  all_predictors_data = " ".join(
23
23
  [
24
- f"-D msa_file={msa_file}",
25
- f"-D changeTimesFile={predictors_dir / 'changetimes_all_7e.tsv'}",
26
- f"-D predictorFiles={all_predictor_files}",
24
+ f"-D aligned_fasta={msa_file}",
25
+ f"-D GLMpredictor_changetimes={predictors_dir / 'changetimes_all_7e.tsv'}",
26
+ f"-D GLMpredictor_files={all_predictor_files}",
27
27
  ]
28
28
  )
29
29
  flight_predictor_data = " ".join(
30
30
  [
31
- f"-D msa_file={msa_file}",
32
- f"-D changeTimesFile={predictors_dir / 'changetimes_flights_4e.tsv'}",
33
- f"-D predictorFiles={predictors_dir / 'flight_pop_x_4e_ls.tsv'}",
31
+ f"-D aligned_fasta={msa_file}",
32
+ f"-D GLMpredictor_changetimes={predictors_dir / 'changetimes_flights_4e.tsv'}",
33
+ f"-D GLMpredictor_files={predictors_dir / 'flight_pop_x_4e_ls.tsv'}",
34
34
  ]
35
35
  )
36
36
 
@@ -41,13 +41,14 @@ def run_beast():
41
41
  " ".join(
42
42
  [
43
43
  os.environ["BELLA_RUN_BEAST_CMD"],
44
- f"-D msa_file={msa_file}",
44
+ f"-D aligned_fasta={msa_file}",
45
45
  f"-prefix {output_dir / 'Nonparametric'}{os.sep}",
46
46
  str(beast_configs_dir / "Nonparametric.xml"),
47
47
  ]
48
48
  ),
49
49
  base_log_dir / "Nonparametric",
50
- mem_per_cpu="64000",
50
+ cpus=128,
51
+ mem_per_cpu=12000,
51
52
  )
52
53
 
53
54
  os.makedirs(output_dir / "all-predictors-GLM", exist_ok=True)
@@ -55,14 +56,14 @@ def run_beast():
55
56
  " ".join(
56
57
  [
57
58
  os.environ["BELLA_RUN_BEAST_CMD"],
58
- f"-D ReDimension='{5 * 7}'",
59
59
  all_predictors_data,
60
60
  f"-prefix {output_dir / 'all-predictors-GLM'}{os.sep}",
61
61
  str(beast_configs_dir / "GLM.xml"),
62
62
  ]
63
63
  ),
64
64
  base_log_dir / "all-predictors-GLM",
65
- mem_per_cpu="64000",
65
+ cpus=128,
66
+ mem_per_cpu=12000,
66
67
  )
67
68
 
68
69
  os.makedirs(output_dir / "flights-GLM", exist_ok=True)
@@ -70,16 +71,16 @@ def run_beast():
70
71
  " ".join(
71
72
  [
72
73
  os.environ["BELLA_RUN_BEAST_CMD"],
73
- f"-D ReDimension='{5 * 4}'",
74
74
  flight_predictor_data,
75
75
  f"-prefix {output_dir / 'flights-GLM'}{os.sep}",
76
76
  str(beast_configs_dir / "GLM.xml"),
77
77
  ]
78
78
  ),
79
79
  base_log_dir / "flights-GLM",
80
- mem_per_cpu="64000",
80
+ cpus=128,
81
+ mem_per_cpu=12000,
81
82
  )
82
-
83
+ """
83
84
  os.makedirs(output_dir / "all-predictors-MLP", exist_ok=True)
84
85
  job_ids["all-predictors-MLP"] = submit_job(
85
86
  " ".join(
@@ -93,7 +94,7 @@ def run_beast():
93
94
  ]
94
95
  ),
95
96
  base_log_dir / "all-predictors-MLP",
96
- mem_per_cpu="64000",
97
+ mem_per_cpu="256000",
97
98
  )
98
99
 
99
100
  os.makedirs(output_dir / "flights-MLP", exist_ok=True)
@@ -109,8 +110,9 @@ def run_beast():
109
110
  ]
110
111
  ),
111
112
  base_log_dir / "flights-MLP",
112
- mem_per_cpu="64000",
113
+ mem_per_cpu="256000",
113
114
  )
115
+ """
114
116
 
115
117
  with open(base_output_dir / "eucovid_job_ids.json", "w") as f:
116
118
  json.dump(job_ids, f)
@@ -65,7 +65,7 @@ def run_beast():
65
65
  job_ids[i] = submit_job(
66
66
  command,
67
67
  Path(os.environ["BELLA_SBATCH_LOG_DIR"]) / "platyrrhine" / str(i),
68
- mem_per_cpu="12000",
68
+ mem_per_cpu=12000,
69
69
  )
70
70
 
71
71
  with open(base_output_dir / "platyrrhine_job_ids.json", "w") as f:
@@ -4,7 +4,11 @@ from pathlib import Path
4
4
 
5
5
 
6
6
  def submit_job(
7
- command: str, log_dir: Path, time: str = "240:00:00", mem_per_cpu: str = "2000"
7
+ command: str,
8
+ log_dir: Path,
9
+ time: str = "240:00:00",
10
+ cpus: int = 1,
11
+ mem_per_cpu: int = 2000,
8
12
  ) -> str | None:
9
13
  if log_dir.exists():
10
14
  print(f"Log directory {log_dir} already exists. Skipping.")
@@ -17,6 +21,7 @@ def submit_job(
17
21
  f"-e {log_dir / 'error.err'}",
18
22
  f"--time {time}",
19
23
  f"--mem-per-cpu={mem_per_cpu}",
24
+ f"-c={cpus}",
20
25
  f"--wrap='{command}'",
21
26
  ]
22
27
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bella-companion
3
- Version: 0.0.24
3
+ Version: 0.0.26
4
4
  Summary:
5
5
  Author: gabriele-marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -1,9 +1,9 @@
1
1
  bella_companion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  bella_companion/cli.py,sha256=0SwDxkDPqvsp36kGnrBMLPIhAQM8PIpNXrztZayqmDc,2409
3
3
  bella_companion/eucovid/__init__.py,sha256=09Ld_G7fZvCDCgEWsmaOyLVQ8pFc9QHAGnXKJ9Zm2AM,81
4
- bella_companion/eucovid/beast_configs/GLM.xml,sha256=ng13sapf8qe1OGm3xSjl-N_4Fa0gWEOPU172z2XpyQM,11731
4
+ bella_companion/eucovid/beast_configs/GLM.xml,sha256=YMvcyeSRIGQOhSSoj7FV0R-5wZHcGWwf9bKxamJ0q9k,20739
5
5
  bella_companion/eucovid/beast_configs/MLP.xml,sha256=qLvfP3qEIa_XEDigXrPGbegKDLddifRvoZjNmoDDmFo,11268
6
- bella_companion/eucovid/beast_configs/Nonparametric.xml,sha256=oDOxiXPlL5zwuvyOPkdZmdSprivYNbDScjT1IvWnZFI,11548
6
+ bella_companion/eucovid/beast_configs/Nonparametric.xml,sha256=n-t4sUfDS9AzC02tbIk5mx_RDg2l62ELhdR3I3_jjHE,17783
7
7
  bella_companion/eucovid/data/case_data.tsv,sha256=XaSzZh5NcEMVt9d_XlQ19T8UuEkHGrjpSFXhe9IycNg,12412
8
8
  bella_companion/eucovid/data/change_dates.tsv,sha256=_pmVFYiL4X9Pd79uYVgyz3sKeRap7xVcXk0OjqVhuVQ,227
9
9
  bella_companion/eucovid/data/msa.fasta,sha256=sWaVSINSJDDLjmwlpl31JWM5VnKF7yViSpERI69glQc,4839354
@@ -20,14 +20,14 @@ bella_companion/eucovid/data/predictors/all/sharedborders_7e_nt.tsv,sha256=pPVT5
20
20
  bella_companion/eucovid/data/predictors/changetimes_all_7e.tsv,sha256=hH0xXD2lr_8RPQRqvENv6clPHauAXH22SGQHb3hlfzs,120
21
21
  bella_companion/eucovid/data/predictors/changetimes_flights_4e.tsv,sha256=XEepIXKRwcKknJq4-ovKlorvCypGi67B8znuQ5f1LTg,60
22
22
  bella_companion/eucovid/data/predictors/flight_pop_x_4e_ls.tsv,sha256=tMR9-tuGtC3rVABXUtNdV9irUX-9aCCVb_fwksHTn8U,1068
23
- bella_companion/eucovid/run_beast.py,sha256=nBSwRItcxlfRJeXwGe1oFuO4Q-_xTY4u651YW6V-OmY,3807
23
+ bella_companion/eucovid/run_beast.py,sha256=Rj_Cf38TtyljP0JRyMn7G5Nt5Jv9T4CM5eJsKKfoy4E,3823
24
24
  bella_companion/platyrrhine/__init__.py,sha256=dIx6exNz-vuKiG5FZumvq74QUWcIEFd3L6ErqnOa83c,274
25
25
  bella_companion/platyrrhine/beast_config.xml,sha256=8A6E5iPu9FqDL3UdlsqDbabLFlC6Qhfa4Ta47niRkVA,7090
26
26
  bella_companion/platyrrhine/data/change_times.csv,sha256=tedobHbaY7-6M3V6F6HSqGAU9dpeeajR5mu1XGJfp6w,68
27
27
  bella_companion/platyrrhine/data/traits.csv,sha256=N_mCnaM9Gy0Qot7-l_mK0vMvr7e_5BZ4bgUHpcoG9UM,3949
28
28
  bella_companion/platyrrhine/data/trees.nwk,sha256=lpSiGUG5s3zE--IKPOyWrJ5vpJb_xAPnfxychs3YNIs,488232
29
29
  bella_companion/platyrrhine/results.py,sha256=qosxqstTy7uadHARRt1WqmxZzxnQ3hiTjtw6V-YWKGA,2556
30
- bella_companion/platyrrhine/run_beast.py,sha256=caUmebyZMzOukI8RdOlECsT3DStShi0NZNzEJ72qAaw,2554
30
+ bella_companion/platyrrhine/run_beast.py,sha256=xYpK_QS5Qr-8jvq3_s-uXBW5yGsxE3c8AvHd12N6PFY,2552
31
31
  bella_companion/platyrrhine/summarize_logs.py,sha256=82N7rcmLthCyQqmP4Yub4KUsIjNzQl9vEuFLMvIv03o,951
32
32
  bella_companion/simulations/__init__.py,sha256=ShYRdp1iSjnS_SzcsH-8jbqXz6P1nyRQZqAtPZJCMVE,454
33
33
  bella_companion/simulations/beast_configs/epi-multitype/GLM.xml,sha256=VymAYsaZVuB3EPE0DCQSXpKepVq8pPjKaB5yhEpaVkE,4334
@@ -68,8 +68,8 @@ bella_companion/simulations/summarize_logs.py,sha256=Shf3Dx9k4lTbmO__MSLw-aIA8a8
68
68
  bella_companion/utils/__init__.py,sha256=UtMwPK9dWf9NAl0ic8CSsgdW7aSm-5J49OqgvD7UpYw,480
69
69
  bella_companion/utils/beast.py,sha256=TBa0cLklX1_tXqoQE4LRYvds7mLg_9fS2-6U6OHENHo,2184
70
70
  bella_companion/utils/explain.py,sha256=uP7HPyn2YiykAI69BQV3RooDpC6qKoCLXfp3Uibp4zk,1475
71
- bella_companion/utils/slurm.py,sha256=v5DaG7YHVyK8KRFptgGDC6I8jxEhyJuMVK9N08pZSAI,1812
72
- bella_companion-0.0.24.dist-info/METADATA,sha256=P6X18g_ClPSSr_Q1m-0W9ajzOLeWKouQm8Z5yLhk6yQ,576
73
- bella_companion-0.0.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
- bella_companion-0.0.24.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
75
- bella_companion-0.0.24.dist-info/RECORD,,
71
+ bella_companion/utils/slurm.py,sha256=mKxeSzSX0TnQdgMUR-02hjxufepgzjPxUFnEjXVjjCQ,1868
72
+ bella_companion-0.0.26.dist-info/METADATA,sha256=GOVBIP656gDA6JuP0TAe7aj73SEdOlhQ6f8U-tknD7I,576
73
+ bella_companion-0.0.26.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
+ bella_companion-0.0.26.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
75
+ bella_companion-0.0.26.dist-info/RECORD,,