Commits

Anton Goloborodko committed 82c6a6b

binnedData.py: fix a bug in removeStandalone

Comments (0)

Files changed (1)

src/hiclib/binnedData.py

         mask2D = mask[:, None] * mask[None, :]
         antimask = np.nonzero(mask2D.flat == False)[0]
         for i in self.dataDict.values():
-            i[antimask] = 0
+            i.flat[antimask] = 0
         self.appliedOperations["RemovedStandalone"] = True
 
     def removeBySequencedCount(self, sequencedFraction=0.5):