change_resolution

change_resolution#

TrackData.change_resolution(resolution, aggregation_type=AggregationType.SUM)[source]#

Changes the resolution of the track data.

Parameters:
  • resolution (int) – The desired resolution in base pairs.

  • aggregation_type (AggregationType (default: <AggregationType.SUM: 'sum'>)) – The aggregation method to use for pooling the values.

Return type:

TrackData

Returns:

A new TrackData object with the new resolution.