pad

Contents

pad#

Junction.pad(start_pad, end_pad, *, use_strand=True)[source]#

Pads the interval by adding the specified padding to the start and end.

Parameters:
  • start_pad (int) – The amount of padding to add to the start.

  • end_pad (int) – The amount of padding to add to the end.

  • use_strand (bool (default: True)) – If True, padding is applied in reverse for negative strand intervals.

Return type:

Self

Returns:

A new padded interval.