pybedtools.bedtool.BedTool.tabix_intervals¶
- BedTool.tabix_intervals(interval_or_string: Interval | str, check_coordinates: bool = False) BedTool [source]¶
Retrieve all intervals within coordinates from a “tabixed” BedTool.
Given either a string in “chrom:start-stop” format, or an interval-like object with chrom, start, stop attributes, return a streaming BedTool of the features in this BedTool that overlap the provided interval.
If the coordinates are invalid, an empty generator is returned unless
check_coordinates=True
in which case a ValueError will be raised.