Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_classify_no_thresh(self):
"""test classification with no thresholds"""
subcommands.subcmd_classify(self.argsdict["no_threshold"])
def test_createdb(self):
"""Test creation of empty pyani database."""
subcommands.subcmd_createdb(self.argsdict["createdb"])
def test_anib(self):
"""test ANIb run"""
subcommands.subcmd_anib(self.argsdict["anib"], self.logger)
def test_anib(self):
"""Test anib run."""
subcommands.subcmd_anib(self.argsdict["anib"])
def test_runs(self):
"""Test reporting of runs in the database."""
subcommands.subcmd_report(self.argsdict["runs"])
def test_download_kraken(self):
"""C. blochmannia download in Kraken format."""
subcommands.subcmd_download(self.argsdict["kraken"])
)
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)
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)
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)
"--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)