How To Get All Entries Of B With Bedtools
2
0
Entering edit mode
11.6 years ago
lyfsa ▴ 30

Hi All,

Is there any way to get all the original B entry(even the ones for which there is no overlap with A as well) in intersectBed utility? I am trying to overlap two bed files. I need all the entry of file B which I put in -b options. I can not switch the file as the size of file A i.e in -a option is very very big.

Thanks

intersect bedtools • 1.7k views
ADD COMMENT
2
Entering edit mode
11.6 years ago

Sort your A and B files first then use the -sorted flag. This will use far less memory, and should allow you to flip the A and B files as you suggest.

ADD COMMENT
0
Entering edit mode
11.6 years ago

Just off the top of my head - you could add one long interval to you file A that covers the entirety of B. Later you can use the name of this artificial interval to distinguish between real and artificial overlaps.

ADD COMMENT

Login before adding your answer.

Traffic: 2453 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