Bed Files And Flanking Regions
1
0
Entering edit mode
12.5 years ago

Hello everyone,

I am looking for an elegant way, may be awk, to do this :

I have a bed file A with locations, I want for each line to grab other locations that are located in 500kb downstream and upstream and then print the line from file 1 with every information found in file 2

Before going into perl loops I wanted to know if this is easily done with awk ?

Thanks

Rad

awk bed • 2.2k views
ADD COMMENT
6
Entering edit mode
12.5 years ago
Wen.Huang ★ 1.2k

maybe windowBed from the BEDTools package will do the trick?

http://code.google.com/p/bedtools/

ADD COMMENT
0
Entering edit mode

Thanks I am trying it.

ADD REPLY
0
Entering edit mode

that's it thank you.

ADD REPLY

Login before adding your answer.

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