phylojunction.interface.pjcli package

Submodules

phylojunction.interface.pjcli.cli_plotting module

phylojunction.interface.pjcli.cli_plotting.call_node_plot_cli(fig_dir: str, dag_obj: DirectedAcyclicGraph, n_samples: int, node_range_dict: Dict[str, Tuple[int]], fig_obj: Figure, fig_axes: Axes, prefix: str = '') → None
phylojunction.interface.pjcli.cli_plotting.selected_node_plot_cli(fig_dir: str, fig_obj: Figure, fig_axes: Axes, node_dag: NodeDAG, prefix: str = '', sample_idx: int = 0, repl_idx: int = 0, repl_size: int = 1) → None

Plot DAG node on provided Axes object (fig_axes), intended to be scoped to pj_cli.execute_pj_script() then update canvas with new plot

phylojunction.interface.pjcli.cli_plotting.start_fig_and_axes(disabled_yticks: bool = True, disabled_xticks: bool = True, fig_width: int = 11, fig_height: int = 4.5) → Tuple[Figure, Axes]

phylojunction.interface.pjcli.pj_cli module

phylojunction.interface.pjcli.pj_cli.call_cli() → None
phylojunction.interface.pjcli.pj_cli.execute_pj_script(model: str, user_prefix: str | None = None, out_dir: str = './', write_data: bool = False, write_stub_counts: bool = False, write_smap: bool = False, write_figures: str | None = None, write_inference: bool = False, write_nex_str: str | None = None, a_random_seed: int | None = None, tr_dag_nd_names: str | None = None, smap_attr_name: str | None = None) → None

Execute .pj script.

This is called by application ‘pjcli’ from the terminal, but can also be called from a .py script importing phylojunction

Module contents