resize

resize#

Interval.resize(width, use_strand=True)[source]#

Resizes the interval to a new width, centered around the original center.

Parameters:
  • width (int) – The new width of the interval.

  • use_strand (bool (default: True)) – If True, resizing considers the strand orientation.

Return type:

Self

Returns:

A new resized interval.