bella-companion 0.0.0__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/__init__.py +0 -0
- bella_companion/cli.py +24 -0
- bella_companion/fbd_empirical/data/body_mass.csv +1378 -0
- bella_companion/fbd_empirical/data/change_times.csv +22 -0
- bella_companion/fbd_empirical/data/sampling_change_times.csv +6 -0
- bella_companion/fbd_empirical/data/trees.nwk +100 -0
- bella_companion/fbd_empirical/figure.py +37 -0
- bella_companion/fbd_empirical/notbooks.ipynb +359 -0
- bella_companion/fbd_empirical/params.json +11 -0
- bella_companion/fbd_empirical/run_beast.py +54 -0
- bella_companion/fbd_empirical/summarize_logs.py +50 -0
- bella_companion/simulations/__init__.py +0 -0
- bella_companion/simulations/features.py +7 -0
- bella_companion/simulations/figures/__init__.py +0 -0
- bella_companion/simulations/figures/epi_explainations.py +101 -0
- bella_companion/simulations/figures/epi_predictions.py +58 -0
- bella_companion/simulations/figures/fbd_explainations.py +99 -0
- bella_companion/simulations/figures/fbd_predictions.py +66 -0
- bella_companion/simulations/figures/scenarios.py +87 -0
- bella_companion/simulations/figures/utils.py +250 -0
- bella_companion/simulations/generate_data.py +25 -0
- bella_companion/simulations/run_beast.py +92 -0
- bella_companion/simulations/scenarios/__init__.py +20 -0
- bella_companion/simulations/scenarios/common.py +29 -0
- bella_companion/simulations/scenarios/epi_multitype.py +68 -0
- bella_companion/simulations/scenarios/epi_skyline.py +65 -0
- bella_companion/simulations/scenarios/fbd_2traits.py +101 -0
- bella_companion/simulations/scenarios/fbd_no_traits.py +71 -0
- bella_companion/simulations/scenarios/scenario.py +26 -0
- bella_companion/simulations/summarize_logs.py +39 -0
- bella_companion/utils.py +164 -0
- bella_companion-0.0.0.dist-info/METADATA +13 -0
- bella_companion-0.0.0.dist-info/RECORD +34 -0
- bella_companion-0.0.0.dist-info/WHEEL +4 -0
|
File without changes
|
bella_companion/cli.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
|
|
3
|
+
from dotenv import load_dotenv
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main():
|
|
7
|
+
load_dotenv()
|
|
8
|
+
|
|
9
|
+
parser = argparse.ArgumentParser(prog="bella")
|
|
10
|
+
subparsers = parser.add_subparsers(dest="command")
|
|
11
|
+
|
|
12
|
+
gen_sim_data_parser = subparsers.add_parser("generate-simulations-data")
|
|
13
|
+
generate_simulations_data_parser.set_defaults(func=generate_simulations_data)
|
|
14
|
+
|
|
15
|
+
args = parser.parse_args()
|
|
16
|
+
if hasattr(args, "func"):
|
|
17
|
+
args.func(args)
|
|
18
|
+
else:
|
|
19
|
+
parser.print_help()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def generate_simulations_data(args):
|
|
23
|
+
print("Generating simulations data...")
|
|
24
|
+
# your logic here
|