resize#
- TrackData.resize(width)[source]#
Resizes the track data by cropping or padding with a fixed center.
- Parameters:
width (
int) – The desired width in base pairs.- Return type:
- Returns:
A new
TrackDataobject with resized values.- Raises:
ValueError – If
widthis not divisible by the resolution.