shift

Contents

shift#

Interval.shift(offset, use_strand=True)[source]#

Shifts the interval by the given offset.

Parameters:
  • offset (int) – The amount to shift the interval.

  • use_strand (bool (default: True)) – If True, the shift direction is reversed for negative strand intervals.

Return type:

Self

Returns:

A new shifted interval.