Skip to content

Commit

Permalink
fix(mi): fix Straglr calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 13, 2024
1 parent 665d052 commit a65b061
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions strkit/mi/straglr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def make_calls_dict(self, ph, contig, cr: Optional[MIContigResult] = None):

k = (line[0], int(line[1]), int(line[2]))

orig_motif = next(iter(self.get_loci_overlapping(k[0], k[1], k[2], True)), None)
orig_motif = orig_motif[-1] if orig_motif else None
orig_motif: Optional[tuple[int, int, list[str]]] = next(
iter(self.get_loci_overlapping(k[0], k[1], k[2], True)), (None,)
)[0]
orig_motif: Optional[str] = orig_motif[-1][0] if orig_motif else None

if not orig_motif:
continue
Expand Down

0 comments on commit a65b061

Please sign in to comment.