bx.intervals.operations.intersect module

Compute the intersection of two sets of genomic intervals, either base-by-base or at the interval level. The returned GenomicIntervalReader will be in the order of the first set of intervals passed in, with the corresponding additional fields.

bx.intervals.operations.intersect.intersect(readers, mincols=1, upstream_pad=0, downstream_pad=0, pieces=True, lens={}, comments=True)