Off topic:Filter .bed file by numbers in final column
0
0
Entering edit mode
5.3 years ago
kdc15 ▴ 40

Hi,

I would like to filter a .bed file by numbers in the last column:

chr1    0       14400   18
chr1    14400   19000   6
chr1    19000   567400  18
chr1    567400  567800  10
chr1    567800  713200  18
chr1    713200  713800  2
chr1    713800  714600  1
chr1    714600  715400  2
chr1    715400  724000  6

How can I create a new file with lines that only contain 1,2 and 18? like this:

chr1    0       14400   18
chr1    19000   567400  18
chr1    567800  713200  18 
chr1    713200  713800  2
chr1    713800  714600  1
chr1    714600  715400  2

Would it involve using the awk command?

Many Thanks

bed file filter sequence genomic • 1.5k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2009 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