slice_by_interval#
- TrackData.slice_by_interval(interval, match_resolution=False)[source]#
Slices the track data using a
genome.Interval.- Parameters:
- Return type:
- Returns:
A new
TrackDataobject sliced to the interval.- Raises:
ValueError – If
.intervalis not specified or if the specified interval is not fully contained within the current interval.