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

merge add_test with dev

parents 80f25b02 5ee507b1
No related branches found
No related tags found
No related merge requests found
Pipeline #15973 passed
...@@ -163,6 +163,9 @@ def iterative_mash(sorted_genomes, genomes, outdir, species_linked, min_dist, ma ...@@ -163,6 +163,9 @@ def iterative_mash(sorted_genomes, genomes, outdir, species_linked, min_dist, ma
# Compute pairwise distances # Compute pairwise distances
compare_all(out_msh, matrix, mash_log, threads) compare_all(out_msh, matrix, mash_log, threads)
with open(matrix, "r") as mat:
for line in mat:
print(line)
# Iteratively discard genomes # Iteratively discard genomes
# List of genomes to compare to the next ones until a limit value is reached. # 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 ...@@ -266,9 +269,6 @@ def sketch_all(genomes, sorted_genomes, outdir, list_reps, out_msh, mash_log, th
f"{mash_log}") f"{mash_log}")
outf = open(mash_log, "w") 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) utils.run_cmd(cmd_sketch, error_sketch, eof=True, stdout=outf, stderr=outf, logger=logger)
outf.close() outf.close()
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment