ERROR: reads not sorted while the reads are sorted

135 views
Skip to first unread message

julie

unread,
Sep 3, 2013, 4:13:34 AM9/3/13
to rseg-s...@googlegroups.com
Hi,

I cannot run the latest version of RSEG because it says me :

ERROR: reads not sorted in myBedfile.bed

chr1	3836344	3836381	2781376	0	-
chr1	3836344	3836381	440874	0	+

I began my analyse by a sorting with bedtools, and for me, this example in not unsorted.

Furthermore, this file was supported without error in the first version of RSEG.

How can I obtain a file which is supported by the new version of RSEG.

Thanks.

Julie

Song, Qiang

unread,
Sep 3, 2013, 1:33:30 PM9/3/13
to RSEG Users
Hi Julie,

rseg sorting also use the strand info, i.e., + should precedes - if two reads have the same location.

To do the sorting, run
export LC_ALL=C
sort -k1,1 -k3,3n -k2,2n -k6,6 input.bed -o input-sorted.bed

Regards,
Song Qiang







--
You received this message because you are subscribed to the Google Groups "RSEG Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rseg-support...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

julie

unread,
Sep 6, 2013, 10:55:18 AM9/6/13
to rseg-s...@googlegroups.com
Thanks a lot!
It works.

Julie
Reply all
Reply to author
Forward
0 new messages