pybedtools.bedtool.BedTool.split¶
- BedTool.split(func: Callable, *args, **kwargs) BedTool[source]¶
Split each feature using a user-defined function.
Calls the provided function
funcwith each interval. In contrast toeach(which does something similar), this method expectsfuncto return an iterable of Interval objects.args and kwargs are passed directly to
func.Returns a new BedTool.