Question: BEDOPS sort-bed BED_LINE_LEN question
0
gravatar for rbronste
2.3 years ago by
rbronste370
rbronste370 wrote:

So I am just trying to sort a bed file in the following way:

sort-bed GSE63137_ATAC-seq_PV_neurons_HOMER_peaks.bed > GSE63137_ATAC-seq_PV_neurons_HOMER_peaks_sorted.bed

It is only a 3 column bed file:

e.g.

chrY            90810610    90811697
chrY            90812379    90813359
chrY            90828628    90829131
chrY            90838917    90839418

I am getting the following error, and that last line you see is whats causing it seems, thanks!

File has never been opened in excel.

No end of line found at 103361 in GSE63137_ATAC-seq_PV_neurons_HOMER_peaks.bed.
May need to increase BED_LINE_LEN and recompile.
First check that you have unix newlines (cat -A).
sort-bed intervals bedops bed • 657 views
ADD COMMENTlink written 2.3 years ago by rbronste370
1
gravatar for ATpoint
2.3 years ago by
ATpoint44k
ATpoint44k wrote:

What is the output of sort -k1,1 -k2,2n your.bed | tail ?

sort -k1,1 -k2,2n is totally sufficient for sorting a BED file. There is actually no need for any other tool than Unix sort.

ADD COMMENTlink written 2.3 years ago by ATpoint44k

That worked well thanks. Have been using bedops for other stuff so it was moreso what was in my head, and have used sort-bed always with no issues except today!

ADD REPLYlink written 2.3 years ago by rbronste370
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: 2576 users visited in the last hour
_