Intersecting multiple bed files with reporting the number of base pairs of overlap between the features - Pybedtools
Entering edit mode
4 months 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 • 130 views

Login before adding your answer.

Traffic: 1708 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6