From 8fa32805d7267e50446b0220c7f0288480d8393e Mon Sep 17 00:00:00 2001 From: Jakob Nybo Nissen Date: Thu, 9 Jan 2025 13:18:25 +0100 Subject: [PATCH] Log the file taxonomy is loaded from (#386) This is generally useful, and in particular helps with a current CI issue where the wrong file is seemingly loaded in CI --- vamb/__main__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vamb/__main__.py b/vamb/__main__.py index 63e170ae..78babb89 100755 --- a/vamb/__main__.py +++ b/vamb/__main__.py @@ -1558,12 +1558,12 @@ def run_vaevae(opt: BinTaxVambOptions): ) contig_taxonomies = predicted_contig_taxonomies.to_taxonomy() elif isinstance(opt.taxonomy, RefinedTaxonomy): - logger.info("Loading already-refined taxonomy from file") + logger.info(f'Loading already-refined taxonomy from file "{opt.taxonomy.path}"') contig_taxonomies = vamb.taxonomy.Taxonomy.from_refined_file( opt.taxonomy.path, composition.metadata, False ) else: - logger.info("Loading unrefined taxonomy from file") + logger.info(f'Loading unrefined taxonomy from file "{opt.taxonomy.path}"') contig_taxonomies = vamb.taxonomy.Taxonomy.from_file( opt.taxonomy.path, composition.metadata, False ) @@ -1697,12 +1697,15 @@ def run_reclustering(opt: ReclusteringOptions): ) taxonomy = predicted_tax.to_taxonomy() else: - logger.info(f'Loading taxonomy from file "{alg.taxonomy.path}"') if isinstance(alg.taxonomy, UnrefinedTaxonomy): + logger.info( + f'Loading unrefined taxonomy from file "{alg.taxonomy.path}"' + ) taxonomy = vamb.taxonomy.Taxonomy.from_file( alg.taxonomy.path, composition.metadata, True ) else: + logger.info(f'Loading refined taxonomy from file "{alg.taxonomy.path}"') taxonomy = vamb.taxonomy.Taxonomy.from_refined_file( alg.taxonomy.path, composition.metadata, True )