How do i extract rows from a bedfile that have a certain bedscore?
1
0
Entering edit mode
6.2 years ago
a.rex ▴ 350

I have a typical bedfile - I want to extract out rows that have a read coverage score/bedscore of >100.

Any tips on how to do this would be much appreciated.

bed parse • 1.2k views
ADD COMMENT
3
Entering edit mode
6.2 years ago

Assuming five-column BED, with the score or signal in the fifth column:

$ awk '$5>100' in.bed > out.bed

If you're working with a bedGraph file:

$ awk '$4>100' in.bedGraph > out.bedGraph
ADD COMMENT

Login before adding your answer.

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