Пример #1
0
def test_legacy_anib_mpl(legacy_anib_mpl_namespace):
    r"""Use legacy script to run ANIb (mpl output).

    average_nucleotide_identity.py \
        -l test_ANIb.log \
        -i tests/test_output/legacy_scripts/C_blochmannia \
        -o tests/test_output/legacy_scripts/ANIb_mpl \
        -g --gmethod mpl --gformat pdf,png \
        -f --jobprefix ANI
    """
    average_nucleotide_identity.run_main(legacy_anib_mpl_namespace)
Пример #2
0
def test_legacy_anim_mpl(legacy_anim_mpl_namespace):
    r"""Use legacy script to run ANIm (mpl output).

    average_nucleotide_identity.py \
        -l test_ANIm.log \
        -i tests/fixtures/legacy/ANI_input \
        -o tests/test_output/legacy_scripts/ANIm_mpl \
        -g --gmethod mpl --gformat pdf,png \
        -f --jobprefix ANI
    """
    average_nucleotide_identity.run_main(legacy_anim_mpl_namespace)
Пример #3
0
    def test_legacy_anib_mpl(self):
        r"""Use legacy script to run ANIb (mpl output).

        average_nucleotide_identity.py \
            -l test_ANIb.log \
            -i tests/test_output/legacy_scripts/C_blochmannia \
            -o tests/test_output/legacy_scripts/ANIb_mpl \
            -g --gmethod mpl --gformat pdf,png \
            -f --jobprefix ANI
        """
        args = self.argsdict["anib_mpl"]
        average_nucleotide_identity.run_main(args, self.logger)
        self.assertDirsEqual(args.outdirname,
                             self.testdirs.tgtdir / args.outdirname.name)
Пример #4
0
    def test_legacy_anim_seaborn(self):
        r"""Use legacy script to run ANIm (seaborn output).

        average_nucleotide_identity.py \
            -l test_ANIm.log \
            -i tests/test_output/legacy_scripts/C_blochmannia \
            -o tests/test_output/legacy_scripts/ANIm_seaborn \
            -g --gmethod seaborn --gformat pdf,png \
            -f --jobprefix ANI
        """
        args = self.argsdict["anim_seaborn"]
        average_nucleotide_identity.run_main(args, self.logger)
        self.assertDirsEqual(
            args.outdirname,  # pylint: disable=no-member
            self.testdirs.tgtdir / args.outdirname.name,  # pylint: disable=no-member
        )
Пример #5
0
def test_legacy_tetra_mpl(legacy_tetra_mpl_namespace):
    r"""Use legacy script to run TETRA (mpl output)."""
    average_nucleotide_identity.run_main(legacy_tetra_mpl_namespace)
Пример #6
0
def test_legacy_tetra_sns(legacy_tetra_sns_namespace):
    r"""Use legacy script to run TETRA (seaborn output)."""
    average_nucleotide_identity.run_main(legacy_tetra_sns_namespace)
Пример #7
0
 def test_legacy_tetra_mpl(self):
     r"""Use legacy script to run TETRA (mpl output)."""
     args = self.argsdict["tetra_mpl"]
     average_nucleotide_identity.run_main(args, self.logger)
     self.assertDirsEqual(args.outdirname,
                          self.testdirs.tgtdir / args.outdirname.name)