Intersecting multiple bed files with reporting the number of base pairs of overlap between the features - Pybedtools
Hi all,
I am trying to find overlap between multiple bed files using pybedtools with multi_intersect method. However, this approach doesn't report the number of base pairs that overlap between the features of the bed files, is there away to somehow find that piece of information?
x = pybedtools.BedTool()
a = pybedtools.example_bedtool('data_bed1.bed')
b = pybedtools.example_bedtool('data_bed2.bed')
c = pybedtools.example_bedtool('data_bed2.bed')
result = x.multi_intersect(i=[a.fn, b.fn, c.fn])
Any suggestions or advice would be highly appreciated,
Many thanks in advance
• 904 views
•
link
0 answers
No answers yet.
Log in to answer this question.