Intersecting unbalanced BED files, normalizing for one
0
0
Entering edit mode
3.8 years ago
LacquerHed ▴ 30

Have two bed files I am intersecting, one of approximately 500 promoters +/- 2kb of TSS and the other some locations of histone marks within those promoters. There are many more intervals in the latter dataset, I would like to get the number of intersects that are unique to the promoter interval file, meaning that even if 25 intervals from the histone mark fall within one promoter I would like it to report 1 intersect. Maybe there is some way of merging across those 25 and making one unified interval that stretches across them. Not really sure of a good way to go about this, thanks.

bedtools bedops • 680 views
ADD COMMENT
1
Entering edit mode

you can use bedtools intersect with -wa option to report the intersected promoter for each interval, then use sort -u to get the unique promoter entry

ADD REPLY

Login before adding your answer.

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