Skip to content

Commit

Permalink
final long no plasmids test
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Sep 12, 2023
1 parent 8065559 commit 464da11
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_plassembler_skipqc(self):
# flye_dir
def test_plassembler_flye_dir(self):
with self.assertRaises(RuntimeError):
"""test plassembler run case 4. With flye directory. Should fail out (Saves time)."""
"""test plassembler run case 4. With flye directory. Should error out (Saves time)."""
longreads: Path = f"{end_to_end}/abaumanii_plasmid.fastq.gz"
s1: Path = f"{end_to_end}/abaumanii_reads_R1.fastq.gz"
s2: Path = f"{end_to_end}/abaumanii_reads_R2.fastq.gz"
Expand All @@ -166,7 +166,7 @@ def test_plassembler_long(self):

def test_plassembler_long_no_chrom(self):
with self.assertRaises(RuntimeError):
"""test plassembler long - no chromosome recovered"""
"""test plassembler long - no chromosome recovered - should error out"""
longreads: Path = f"{end_to_end}/input_fastq.gz"
chromosome = 500000
outdir: Path = f"{end_to_end}/test_out"
Expand All @@ -175,14 +175,13 @@ def test_plassembler_long_no_chrom(self):
remove_directory(outdir)

def test_plassembler_long_no_plasmids(self):
with self.assertRaises(RuntimeError):
"""test plassembler long - no plasmids recovered at all"""
longreads: Path = f"{end_to_end}/abaumanii_plasmid.fastq.gz"
chromosome = 50000
outdir: Path = f"{end_to_end}/test_out"
cmd = f"plassembler long -l {longreads} -c {chromosome} -d {plassembler_db_dir} -o {outdir} -t 8 -f"
exec_command(cmd)
remove_directory(outdir)
"""test plassembler long - no plasmids recovered at all"""
longreads: Path = f"{end_to_end}/abaumanii_plasmid.fastq.gz"
chromosome = 50000
outdir: Path = f"{end_to_end}/test_out"
cmd = f"plassembler long -l {longreads} -c {chromosome} -d {plassembler_db_dir} -o {outdir} -t 8 -f"
exec_command(cmd)
remove_directory(outdir)

"""
assembled
Expand Down

0 comments on commit 464da11

Please sign in to comment.