bella-companion 0.0.25__py3-none-any.whl → 0.0.27__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.
- bella_companion/eucovid/beast_configs/GLM.xml +377 -128
- bella_companion/eucovid/beast_configs/Nonparametric.xml +331 -146
- bella_companion/eucovid/run_beast.py +15 -13
- bella_companion/platyrrhine/run_beast.py +1 -1
- bella_companion/utils/slurm.py +7 -2
- {bella_companion-0.0.25.dist-info → bella_companion-0.0.27.dist-info}/METADATA +1 -1
- {bella_companion-0.0.25.dist-info → bella_companion-0.0.27.dist-info}/RECORD +9 -9
- {bella_companion-0.0.25.dist-info → bella_companion-0.0.27.dist-info}/WHEEL +0 -0
- {bella_companion-0.0.25.dist-info → bella_companion-0.0.27.dist-info}/entry_points.txt +0 -0
|
@@ -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
|
|
25
|
-
f"-D
|
|
26
|
-
f"-D
|
|
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
|
|
32
|
-
f"-D
|
|
33
|
-
f"-D
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
@@ -111,6 +112,7 @@ def run_beast():
|
|
|
111
112
|
base_log_dir / "flights-MLP",
|
|
112
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)
|
bella_companion/utils/slurm.py
CHANGED
|
@@ -4,7 +4,11 @@ from pathlib import Path
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def submit_job(
|
|
7
|
-
command: str,
|
|
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.")
|
|
@@ -15,8 +19,9 @@ def submit_job(
|
|
|
15
19
|
f"-J {log_dir}",
|
|
16
20
|
f"-o {log_dir / 'output.out'}",
|
|
17
21
|
f"-e {log_dir / 'error.err'}",
|
|
22
|
+
f"-c {cpus}",
|
|
18
23
|
f"--time {time}",
|
|
19
|
-
f"--mem-per-cpu
|
|
24
|
+
f"--mem-per-cpu {mem_per_cpu}",
|
|
20
25
|
f"--wrap='{command}'",
|
|
21
26
|
]
|
|
22
27
|
)
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
72
|
-
bella_companion-0.0.
|
|
73
|
-
bella_companion-0.0.
|
|
74
|
-
bella_companion-0.0.
|
|
75
|
-
bella_companion-0.0.
|
|
71
|
+
bella_companion/utils/slurm.py,sha256=xEyf-Jxk8fy71t3fko_Ic9WtUFSdLFE3w4tR17gaBPw,1868
|
|
72
|
+
bella_companion-0.0.27.dist-info/METADATA,sha256=Sl37hKYlQ0qIq5NxxA1wNCmF-Mj109HazWo8EDq_pkk,576
|
|
73
|
+
bella_companion-0.0.27.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
74
|
+
bella_companion-0.0.27.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
|
|
75
|
+
bella_companion-0.0.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|