boundary_shift

boundary_shift#

Interval.boundary_shift(start_offset=0, end_offset=0, use_strand=True)[source]#

Extends or shrinks the interval by adjusting the positions with padding.

Parameters:
  • start_offset (int (default: 0)) – The amount to shift the start position.

  • end_offset (int (default: 0)) – The amount to shift the end position.

  • use_strand (bool (default: True)) – If True, the offsets are applied in reverse for negative strand intervals.

Return type:

Self

Returns:

A new interval with adjusted boundaries.