repare 0.0.2__py3-none-any.whl → 0.1.1__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 repare might be problematic. Click here for more details.

repare/main.py CHANGED
@@ -23,12 +23,16 @@ def parse_arguments():
23
23
  "--max_candidate_pedigrees",
24
24
  type=int,
25
25
  default=1000,
26
- help="Number of pedigrees to keep after each iteration. Default is 100.",
26
+ help="Number of pedigrees to keep after each iteration. Defaults to 1000.",
27
27
  )
28
28
  parser.add_argument(
29
- "-e", "--epsilon", type=float, default=0.2, help="Epsilon value for the simulation. Default is 0.2."
29
+ "-e",
30
+ "--epsilon",
31
+ type=float,
32
+ default=0.2,
33
+ help="Parameter for adapted epsilon-greedy sampling at the end of each algorithm iteration. Defaults to 0.2.",
30
34
  )
31
- parser.add_argument("-s", "--seed", type=int, default=42, help="Random seed for reproducibility. Default is 42.")
35
+ parser.add_argument("-s", "--seed", type=int, default=42, help="Random seed for reproducibility. Defaults to 42.")
32
36
  parser.add_argument("-d", "--do_not_plot", action="store_false", help="Do not plot reconstructed pedigree(s).")
33
37
  parser.add_argument(
34
38
  "-w", "--write_alternates", action="store_true", help="Write outputs of alternate pedigrees to disk."
@@ -47,6 +51,7 @@ def main():
47
51
  os.makedirs(output_dir, exist_ok=True)
48
52
 
49
53
  with logging_redirect_tqdm():
54
+ print("Beginning pedigree reconstruction...")
50
55
  pedigree_reconstructor = PedigreeReconstructor(
51
56
  relations_path=args.relations,
52
57
  nodes_path=args.nodes,
@@ -58,6 +63,7 @@ def main():
58
63
  random_seed=args.seed,
59
64
  )
60
65
  pedigree_reconstructor.find_best_pedigree()
66
+ print(f"Finished pedigree reconstruction. Outputs written to {os.path.abspath(output_dir)}.")
61
67
 
62
68
 
63
69
  if __name__ == "__main__":