Hello Devon
Thank you for your comments!. so you are mentioning that it should be same whether I have followed the first trial (directly convert from bam to count file without sort) or the second trail ( convert bam to sam and then sam to count file with sorting option).
Since result difference is relatively big ( as you mentioned if it is a bug) , htseq-count should be fixed. ( I hope Simon Anders could see this posting!! )
BTW, I just realized that my one of option for htseq-count was different, which was -s no option...
THe default was "yes". I didn't set up this option for the first trial, which implicitly means that "yes" but my second trial, it was set as "no".
I suspect that it would also cause the difference. so changed it.. as third trial, but all my three trial return the different count file, which is weired.!! hm...
option 1)
htseq-count -f bam KDR_pre_thout/accepted_hits.bam genes.gtf > KDR_pre_raw_count.txt
option 2)
samtools sort -n KDR_pre_thout/accepted_hits.bam KDR_pre_sn
samtools view -o KDR_pre_sn.sam KDR_pre_sn.bam
htseq-count -s no -a 10 KDR_pre_sn.sam gene.gtf > KDR_pre_sn.count
option 3)
samtools sort -n KDR_pre_thout/accepted_hits.bam KDR_pre_sn
samtools view -o KDR_pre_sn.sam KDR_pre_sn.bam
htseq-count -a 10 KDR_pre_sn.sam gene.gtf > KDR_pre_sn.count
All the results from three trial looks different.
Could you please let me know what is "strand-specific assay" means???