From 45d72f139b1e3a3edb8b7aa77e794b4e934d1c29 Mon Sep 17 00:00:00 2001 From: jmschrei Date: Fri, 16 Feb 2024 06:20:43 +0000 Subject: [PATCH] FIX FIMO lint issue --- tangermeme/tools/fimo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangermeme/tools/fimo.py b/tangermeme/tools/fimo.py index d26e264..08a310b 100644 --- a/tangermeme/tools/fimo.py +++ b/tangermeme/tools/fimo.py @@ -301,7 +301,7 @@ def hits(self, X, X_attr=None, threshold=0.0001, batch_size=256, dim=0, hit_idxs = torch.where(scores > score_thresh) for idxs in tqdm(zip(*hit_idxs)): example_idx, motif_idx, strand_idx, pos_idx = idxs - score = scores[*idxs].item() + score = scores[(example_idx, motif_idx, strand_idx, pos_idx)].item() l = self.motif_lengths[motif_idx] start = pos_idx.item()