binary_mask_stranded#
- Interval.binary_mask_stranded(intervals, bin_size=1)[source]#
Stranded boolean mask that is True where any interval overlaps the bin.
- Parameters:
- Return type:
- Returns:
Boolean mask of shape
(self.width // bin_size, 2), True wherecoverage_stranded > 0. Column 0 refers to intervals on the same strand as self, and column 1 to intervals on the opposite strand.