How to use the pyani.scripts.subcommands function in pyani

To help you get started, we’ve selected a few pyani examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github widdowquinn / pyani / tests / test_subcmd_07_classify.py View on Github external
def test_classify_no_thresh(self):
        """test classification with no thresholds"""
        subcommands.subcmd_classify(self.argsdict["no_threshold"])
github widdowquinn / pyani / tests / test_subcmd_03_createdb.py View on Github external
def test_createdb(self):
        """Test creation of empty pyani database."""
        subcommands.subcmd_createdb(self.argsdict["createdb"])
github widdowquinn / pyani / tests / test_subcmd_06_anib.py View on Github external
def test_anib(self):
        """test ANIb run"""
        subcommands.subcmd_anib(self.argsdict["anib"], self.logger)
github widdowquinn / pyani / tests / test_subcmd_08_anib.py View on Github external
def test_anib(self):
        """Test anib run."""
        subcommands.subcmd_anib(self.argsdict["anib"])
github widdowquinn / pyani / tests / test_subcmd_05_report.py View on Github external
def test_runs(self):
        """Test reporting of runs in the database."""
        subcommands.subcmd_report(self.argsdict["runs"])
github widdowquinn / pyani / tests / test_subcmd_01_download.py View on Github external
def test_download_kraken(self):
        """C. blochmannia download in Kraken format."""
        subcommands.subcmd_download(self.argsdict["kraken"])
github widdowquinn / pyani / pyani / scripts / parsers.py View on Github external
)
    parser.add_argument(
        "--run_matrices",
        action="store",
        dest="run_matrices",
        default=False,
        help="Report matrices of results for a pyani run",
    )
    parser.add_argument(
        "--formats",
        dest="formats",
        action="store",
        default=None,
        help="Output formats (in addition to .tab)",
    )
    parser.set_defaults(func=subcommands.subcmd_report)
github widdowquinn / pyani / pyani / scripts / parsers / classify_parser.py View on Github external
action="store",
        type=float,
        default=1e-4,
        help="number of identity thresholds to test",
    )
    parser.add_argument(
        "--show_all",
        dest="show_all",
        action="store_true",
        default=False,
        help=(
            "report all intervals in log (default: "
            "only intervals where all subgraphs are k-complete"
        ),
    )
    parser.set_defaults(func=subcommands.subcmd_classify)
github widdowquinn / pyani / pyani / scripts / parsers.py View on Github external
parser.add_argument(
        "--reclass",
        action="store",
        dest="reclassfname",
        default=None,
        help="reclass genomes with hashes in passed file",
    )
    parser.add_argument(
        "-f",
        "--force",
        action="store_true",
        dest="force",
        default=False,
        help="force database operation",
    )
    parser.set_defaults(func=subcommands.subcmd_db)
github widdowquinn / pyani / pyani / scripts / parsers / index_parser.py View on Github external
"--labels",
        dest="labelfname",
        action="store",
        default=Path("labels.txt"),
        type=Path,
        help="Filename for labels file",
    )
    parser.add_argument(
        "--classes",
        dest="classfname",
        action="store",
        default=Path("classes.txt"),
        type=Path,
        help="Filename for classes file",
    )
    parser.set_defaults(func=subcommands.subcmd_index)