Intersecting multiple bed files with reporting the number of base pairs of overlap between the features - Pybedtools
0
0
Entering edit mode
2.8 years ago
BioICoder ▴ 40

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

Pybedtools Coordinates Python Bedtools • 509 views
ADD COMMENT

Login before adding your answer.

Traffic: 2365 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6