Skip to content
Snippets Groups Projects
Commit 5ee507b1 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

explore error test iterative mash

parent bd6528bf
Branches
No related tags found
No related merge requests found
Pipeline #15966 failed
......@@ -74,7 +74,7 @@ unit-test-ubuntu18.04:
- pip3 install -r requirements-dev.txt
- ./make
script:
- py.test test/test_unit/test_prepare/test_filter.py -v -x
- py.test test/test_unit/test_prepare/test_filter.py::test_iterative_mash -v -x
- mv .coverage .coverage-unit
artifacts:
paths:
......
......@@ -163,6 +163,9 @@ def iterative_mash(sorted_genomes, genomes, outdir, species_linked, min_dist, ma
# Compute pairwise distances
compare_all(out_msh, matrix, mash_log, threads)
with open(matrix, "r") as mat:
for line in mat:
print(line)
# Iteratively discard genomes
# List of genomes to compare to the next ones until a limit value is reached.
......@@ -266,9 +269,6 @@ def sketch_all(genomes, sorted_genomes, outdir, list_reps, out_msh, mash_log, th
f"{mash_log}")
outf = open(mash_log, "w")
print("outf created")
print(utils.check_installed("mash"))
print(cmd_sketch)
utils.run_cmd(cmd_sketch, error_sketch, eof=True, stdout=outf, stderr=outf, logger=logger)
outf.close()
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment