I tried it first but does not give the desired results:
chr1 100 200 chr1 130 201 70
chr1 100 200 chr1 180 220 20
chr1 800 900 . -1 -1 0
chr1 600 700 . -1 -1 0
It will give
chr1 100 200 chr1 130 201 70
chr1 100 200 chr1 180 220 20
chr1 800 900 . -1 -1 0
chr1 600 700
and u can use bedtools sort -i stdin will do the same result as sort -k1,1 -k2,2n
• 0 views
•
link