coverage_stranded

coverage_stranded#

Junction.coverage_stranded(intervals, *, bin_size=1)[source]#

Computes a coverage track from intervals overlapping this interval.

This method considers the strand information of both self and intervals.

Parameters:
  • intervals (Sequence[Self]) – Sequence of intervals possibly overlapping self.

  • bin_size (int (default: 1)) – Resolution at which to bin the output coverage track. Coverage within each bin (if larger than 1) will be summarized using sum().

Return type:

ndarray

Returns:

Coverage of shape (self.width // bin_size, 2). Column 0 holds coverage from intervals on the same strand as self, and column 1 from intervals on the opposite strand.