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

Add information on number of genomes discarded in log

parent 9f94f944
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -278,6 +278,11 @@ def write_discarded(genomes, kept_genomes, list_file, res_path, qc=False):
otherwise, call it discarded-<list_file>.txt
"""
logger = logging.getLogger("utils")
nb_disc = len(genomes) - len(kept_genomes)
if not qc and nb_disc < 2:
logger.info("{} genome was discarded.".format(nb_disc))
elif not qc:
logger.info("{} genomes were discarded.".format(nb_disc))
_, name_lst = os.path.split(list_file)
if not qc:
outdisc = os.path.join(res_path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment