Hi,
I am using the latest version of cufflinks (v0.9.1). When I tried to run cuffdiff, with stdout.combined.gtf and SAM files generated from tophat-1.0.13, I got the following error message,
Error: this SAM file doesn't appear to be correctly sorted!
current hit is at scaffold_10:84064, last one was at scaffold_9:38984923
Cufflinks requires that if your file has SQ records in
the SAM header that they appear in the same order as the chromosomes names
in the alignments.
If there are no SQ records in the header, or if the header is missing,
the alignments must be sorted lexicographically by chromsome
name and by position.
I sorted the SAM with "LC_ALL="C" sort -k 3,3 -k 4,4n" command but the problem persists. Could someone please let me know how to sort the SAM lexicographically by chromsome name and by position? According to the notes in the latest release version, this version should correctly handle the SAM files generated using tophat-1.0.14 or earlier versions.
I am using the latest version of cufflinks (v0.9.1). When I tried to run cuffdiff, with stdout.combined.gtf and SAM files generated from tophat-1.0.13, I got the following error message,
Error: this SAM file doesn't appear to be correctly sorted!
current hit is at scaffold_10:84064, last one was at scaffold_9:38984923
Cufflinks requires that if your file has SQ records in
the SAM header that they appear in the same order as the chromosomes names
in the alignments.
If there are no SQ records in the header, or if the header is missing,
the alignments must be sorted lexicographically by chromsome
name and by position.
I sorted the SAM with "LC_ALL="C" sort -k 3,3 -k 4,4n" command but the problem persists. Could someone please let me know how to sort the SAM lexicographically by chromsome name and by position? According to the notes in the latest release version, this version should correctly handle the SAM files generated using tophat-1.0.14 or earlier versions.
Comment