Entering edit mode
5.1 years ago
rbronste
▴
420
Kind of a basic awk question. I have a bed file where I have been doing the following to limit interval sizes to those under 1000bp with the following awk script, how would I go about doing the same thing but limiting the output to those between 150-200bp only? Thanks!
awk '{if($3-$2 <= 1000) print}' test.bedpe > test_under1000.bedpe
But something like the condition below will not work in awk, will it?
Many thanks!
Natasha
This seems to work fine: