Skip to content

Commit

Permalink
Added STEC O157:H7 GCA_000181775.1 gzip compressed for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kbessonov1984 committed Jul 22, 2024
1 parent 33eac5d commit 58b956e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ectyper/speciesIdentification.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def verify_ecoli_and_inputs(fasta_fastq_files_dict, ofiles, filesnotfound, args)

for bf in ofiles:
sampleName = getSampleName(bf)
LOG.warning("Non fasta / fastq file.")
LOG.warning(f"{sampleName} is non fasta / fastq file. Species identification aborted")
other_files_dict[sampleName] = {"error":"Non fasta / fastq file. ","filepath":bf,"species":"-"}

for file in filesnotfound:
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions test/test_ectyper_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def test_multiple_directories(caplog):
assert any([True if re.match(r".+sample.fasta.+WARNING\s+\(WRONG\s+SPECIES\).+Non fasta / fastq file", line) else False for line in caplog.text.splitlines()]), "Issue with sample.fasta"
assert any([True if re.match(r".+sampletar.+WARNING\s+\(WRONG\s+SPECIES\).+Non fasta / fastq file", line) else False for line in caplog.text.splitlines()]), "Issue with sampletar"
assert any([True if re.match(r".+test_junk.+WARNING\s+\(WRONG\s+SPECIES\).+Non fasta / fastq file", line) else False for line in caplog.text.splitlines()]), "Issue with test_junk"
assert any([True if re.match(r".+GCA_000181775\.1_ASM18177v1_genomic\s+Escherichia\s+coli\s+O157\s+H7.+REPORTABLE", line) else False for line in caplog.text.splitlines()]), "Issue with GCF_000181775.1_ASM18177v1"


def test_mash_sketch_and_assembly_metadata(tmpdir):
Expand Down

0 comments on commit 58b956e

Please sign in to comment.