Skip to content

Commit

Permalink
chore(mi): Straglr debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 13, 2024
1 parent 95a2e0d commit 57107db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion strkit/mi/straglr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ 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:
cr.seen_locus(*k)

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,
Expand Down

0 comments on commit 57107db

Please sign in to comment.