Question: Filtering BED file for interval length
0
gravatar for rbronste
6 months ago by
rbronste340
rbronste340 wrote:

Wondering about a quick and easy way to filter a 3 column bed file for interval length, lets say to toss all of the intervals above 1000bp in length. Thanks.

bedops bed bedtools • 266 views
ADD COMMENTlink written 6 months ago by rbronste340
4
gravatar for alex.zaccaron
6 months ago by
alex.zaccaron130
alex.zaccaron130 wrote:

awk should work fine:

awk '{if($3-$2 <= 1000) print}' file.bed > file_filtered.bed
ADD COMMENTlink written 6 months ago by alex.zaccaron130
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1118 users visited in the last hour