gtdblib.cli package
Submodules
gtdblib.cli.custom_help_formatter module
- class gtdblib.cli.custom_help_formatter.ChangeTempAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
Bases:
ActionAction for changing the directory used for temporary files.
- Example:
<parse>.add_argument(’–tmpdir’, action=ChangeTempAction, default=tempfile.gettempdir(), help=”specify alternative directory for temporary files”)
- class gtdblib.cli.custom_help_formatter.CustomHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)
Bases:
HelpFormatterProvide a customized format for help output.
http://stackoverflow.com/questions/9642692/argparse-help-without-duplicate-allcaps
gtdblib.cli.tree module
- gtdblib.cli.tree.bootstrap_merge(tree: ~pathlib.Path = <typer.models.ArgumentInfo object>, output: ~pathlib.Path = <typer.models.ArgumentInfo object>, replicates: ~typing.List[~pathlib.Path] = <typer.models.ArgumentInfo object>, cpus: int = <typer.models.OptionInfo object>)
Calculate non-parametric bootstrap values using multiple trees.
- gtdblib.cli.tree.convert_to_canonical(tree: ~pathlib.Path = <typer.models.ArgumentInfo object>, output: ~pathlib.Path = <typer.models.ArgumentInfo object>)
Convert accessions in the tree to canonical form (e.g. GCA_123456789.1 -> G123456789).
- gtdblib.cli.tree.polytomy(tree: ~pathlib.Path = <typer.models.ArgumentInfo object>, output: ~pathlib.Path = <typer.models.ArgumentInfo object>, support: float = <typer.models.ArgumentInfo object>)
Collapse nodes with low bootstrap support.