Hello guys, I have generated a SAM file using the following line with STAR:
STAR --runThreadN 18 --genomeDir /home/acenbro/Doct2.0/Genomes/Ustilago/STAR_index --readFilesIn ../ax2_1_paired.fastq ../ax2_2_paired.fastq --sjdbGTFfile /home/acenbro/Doct2.0/Genomes/Ustilago/p3_t237631_Ust_maydi_v2GB.gtf --alignIntronMin 14 --alignIntronMax 2181 --alignMatesGapMax 10000 --limitGenomeGenerateRAM 80000000000
however, when I use SAMtools, I have the following message:
[acenbro@nodo00 STAR]$ module load SAMtools/1.3-foss-2016a
[acenbro@nodo00 STAR]$ samtools flagstat Aligned.out.sam
[E::sam_parse1] CIGAR and query sequence are of different length
[W::sam_read1] parse error at line 10548130
[bam_flagstat_core] Truncated file? Continue anyway.
So when I went to see what was the problem I found this:
head -10548130 Aligned.out.sam | tail -1
SRR6039702.6125410 83 Um_chr01 639069 255 89M = 639011 -147 AGAGCAACGCTCAACAAGGTCGAGCAGCAACACGCGTCG**SRR6039702.6234454** 163 Um_chr16 229194 255 89M = 229204 99 ATCGCCAACAGCACCTGGCGGAAGCATCTCGATCAACCTCCAGCAGCCCAAAGAGCAGCTTGCACAGATCAAGCAGAACCCCCTCTCGG HIIJJJIIIGIJJJHIJJJJJJJJJJJJJJJIJJJJHHEHFFFFFEEDDDDDDDDDDDDDDDDDDDCCDDDDDDDDDDCBDDDDDDDDD NH:i:1 HI:i:1 AS:i:176 nM:i:0
Somehow I have a line with 2 reads and I don't know if it is ok to just eliminate those truncated reads or may I have to change my command line (donĀ“t know how).
Thank you!
Are you using
nohup
?