From 57107db6f00d199accadc890eea2ceac83b0099a Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 13 Nov 2024 13:58:27 -0500 Subject: [PATCH] chore(mi): Straglr debug logging --- strkit/mi/straglr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/strkit/mi/straglr.py b/strkit/mi/straglr.py index 74c4e2c..c493ed9 100644 --- a/strkit/mi/straglr.py +++ b/strkit/mi/straglr.py @@ -38,7 +38,8 @@ def make_calls_dict(self, ph, contig, cr: Optional[MIContigResult] = None): overlapping = self.get_loci_overlapping(k[0], k[1], k[2], True) - if self.should_skip_locus(k[0], k[1], k[2], cached_overlapping=overlapping): + if r := self.should_skip_locus(k[0], k[1], k[2], cached_overlapping=overlapping): + self._logger.debug(f"Skipping locus {k}: {r}") continue if cr: @@ -46,6 +47,7 @@ def make_calls_dict(self, ph, contig, cr: Optional[MIContigResult] = None): orig_motif: str = overlapping[0][-1][0] if not orig_motif: # false-y/blank + self._logger.debug(f"Skipping locus {k}: motif is false-y") continue # Transform the genotypes into something that is consistent across individuals,