cufflinks -p 8 -o /output/dir Aligned.out_sorted.sam
then when I applied cuffmerge as follow:
cuffmerge -p 8 -o ./merged -s /path/to/genomeRef.fa ./assembly_GTF_list.txt
It also give me a similar error:
Begining transcriptome assembly merge
---------------------------------------------
Preparing output location ./merged/
Warning: no reference GTF provided!
[Tue May 27 17:36:08 2014] Converting GTF files to SAM [17:36:08] Loading reference annotation.
[17:36:10] Loading reference annotation.
[17:36:12] Loading reference annotation.
[17:36:14] Loading reference annotation.
[17:36:16] Loading reference annotation.
[17:36:17] Loading reference annotation.
[Tue May 27 17:36:19 2014] Assembling transcripts You are using Cufflinks v2.2.1, which is the most recent release.
Command line:
cufflinks -o ./merged/ -F 0.05 -q --overhang-tolerance 200 --library-type=transfrags -A 0.0 --min-frags-per-transfrag 0 --no-5-extend -p 16 ./merged/tmp/mergeSam_fileAniOQv [bam_header_read] EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
File ./merged/tmp/mergeSam_fileAniOQv doesn't appear to be a valid BAM file, trying SAM...
Error: sort order of reads in BAMs must be the same
[FAILED]
Error: could not execute cufflinks
Is anybody experienced the same? Can anybody help me to figure out what went wrong?
Thank you very much in advance,
Zoe
<p class="MsoPlainTe...
"Error: sort order of reads in BAMs must be the same
[FAILED]
Error: could not execute cufflinks"
The problem is that the output Aligned.out.sam file from STAR can not be sorted properly, doesn't matter if I use samtools or the suggestion from cufflinks some how.
Zoe