StringTie error input file not sorted, even though it is
I've been following the stringtie pipeline for differential expression. I'm up to the stage of stringtie -e -B where I'm using the merged transcript file with the alignment (.bam) files to get read coverage tables.
root="/mnt/fls01-home01/mfbx3sgh/scratch"
file=$root/Genome/*.bam
stringtie $file -p 8 -e -B --fr
-G $root/FPKM_count/stringtie_merged_samples.gtf
I keep getting the error "the input alignment file is not sorted". My bam alignment files are definitely co-ordinate sorted, and I used them in the first step of the pipeline to generate the transcript assemblies with no problems. Anyone had a similar problem?? Thanks
• 1,002 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Did you try sorting (no matter if you think it is or is not) sorted using
samtoolsa representative BAM file and then trystringtieagain? Did that work? Also please show the command that was used for sorting in the first place.Hi, I sorted the bam files using STAR output settings (used instead of HISAT). I've checked the bam file using
samtools view -H $file | grep s0and the output returned@HD VN:1.4 . s0:coordinateso it is definitely sorted. The gtf file is also sorted in the same order, chr1 onwards, so it can't be because of an incompatibility issue?The header is no guarantee for anything. Did you try sorting manually with
samtoolsand then rerun it?Just realised it's an issue with the reading in the file, not the file itself. Thanks for the suggestions anyway!