Closed eboileau closed 10 months ago
Ah... you have to pass -b
arguments as follows
d = a.intersect(b=[b.fn,c.fn], wa=True, wb=True, s=True, sorted=True)
then it works!
I think this is missing in the docs, but indeed follows the same logic as multi_intersect x.multi_intersect(i=[a.fn, b.fn])
.
Description
Calling
intersect
with multiple-b
arguments does not work with the-sorted
flag, although each-b
argument is sorted. It looks like pybedtools somehow concats all-b
arguments into a single file for processing.To Reproduce
This results in
bedtools works fine
while indeed the one file (created by pybedtool) is not sorted
Environment
bedtools v2.29.1 pybedtools.version '0.9.1'