Hi All,
I run the Tophat-cufflink pipeline, it works fine. I also want to try STAR-Cufflink pipeline and STAR-HTSeq pipeline
However, I have some problem to deal with the output SAM file from STAR.
Below are the procedures I applied to my data
1. run STAR, with the parameters:
STAR --genomeDir ./path/to/Genome/ --readFileIn ./path/to/input/read_r1.fastq ./path/to/input/read_r2.fastq --runThreadN 8 --outFileNamePreFix ./path/to/output/dir/ --outSAMstrandField intronMotif
2. samtools view -b -S Aligned.out.sam > Aligned.out.bam
3. samtools sort -n Aligned.out.bam Aligned.out.bam_sorted.bam
4. cufflinks -p 8 -o output/dir Aligned.out.bsm_sorted.bam
The error message is:""Error: sort order of readsin BAMs must be the same"
Is anybody can help me figure out what went wrong?
Thank you in advance,
Zoe