Dear all,
When I did the RNA seq analysis using the "STAR-SAMTOOLS-HTSEQ" pipeline, I meet an error in the samtools step. Here is my script:
module load samtools
samtools sort -n -T /home/chan7_1_test/tmp/ -o /home/chan7_1_test/chan7_1_aftersort /home/chan7_1_test/chan711_mappedAligned.out.bam
it runs pretty good for some of my samples, but for several samples, it report an error:
[E::bam_read1] CIGAR and query sequence lengths differ for GWNJ-0850:425:GW1812271727:1:1122:23054:8657
samtools sort: truncated file. Aborting
I searched internet but it still error report and haven't been resolved. Will be really appreciated if you could give some advices. Thank you!!
what is the version of your tools ?
Hi, it is this version : samtools/gcc/5.3.0/1.6
Please run
samtools --version
and paste the output here.Hi, it is this:
So it maybe samtools 1.6 ?
Thank you!
Yes, it is. Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.WIll do! thank u. and any suggestions for the error...
I don't think it's a bug with samtools (anyway, you should update it) but rather with STAR. What's the version of star
Hi, the version of star is
star/2.6.0
and no error report when using star...