HISAT2-StringTie-CuffDiff "Sam file doesn't appear to be correctly sorted"
1
0
Entering edit mode
6.0 years ago
aboyher • 0

I'm having issues getting CuffDiff to run on my RNA-seq data. I'm using HISAT2 to align using the --dta-cufflinks option and running samtools sort, then stringtie to create gtfs for each bam file and stringtie merge to merge them into one. When I then run cuffdiff, I get this error:

[07:52:00] Loading reference annotation. [07:52:04] Inspecting maps and determining fragment length distributions.

Error: this SAM file doesn't appear to be correctly sorted! current hit is at 004205F|quiver_obj|quiver|quiver|pilon:772, last one was at 000071F|quiver_subseq_1:79442_obj|quiver|quiver|pilon:76430 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've read other threads here about similar errors, but none of the solutions i've seen have helped. I've actually tried running cuffdiff with the same stringtie gff file but with older RNA-seq data aligned to the same reference, and it worked. Any help is appreciated, I've been struggling with this for weeks.

RNA-Seq HISAT2 CuffDiff StringTie • 2.2k views
ADD COMMENT
0
Entering edit mode
6.0 years ago
JJ ▴ 680

Hi, First, you should run HISAT2 with the --dta option option as you are using stringtie and not cufflinks. Second, you should use ballgown after. Look at this paper for a walkthrough of all steps - these work fine :) hope this helps

ADD COMMENT

Login before adding your answer.

Traffic: 2339 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