From 9fe1aaa9eaa2371dd4039fa9255008c3a4d47bcd Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 21 Oct 2024 10:13:59 -0400 Subject: [PATCH] chore(mi): log when contig is finished processing --- strkit/mi/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/strkit/mi/base.py b/strkit/mi/base.py index 546c4ab..1082e5c 100644 --- a/strkit/mi/base.py +++ b/strkit/mi/base.py @@ -161,6 +161,11 @@ def calculate(self, included_contigs: set) -> Optional[MIResult]: n_total += len(contig_result) output_loci.extend(nm) + self._logger.info( + "Finished processing contig %s. Current value: %.2f, ±1: %.2f", + contig_result.contig, res / n_total * 100, res_pm1 / n_total * 100, + ) + if n_total == 0: self._logger.warning("No common loci found") return None