Entering edit mode
11.7 years ago
SK
▴
110
I want to convert SAM file into BAM. I am using command
samtools view -b -S -o bowtie.glob.bam bowtie.glob.sam
but getting error
Parse error at line 25645: invalid CIGAR character
Could someone please help me to solve this problem?
Could you post line 25645 of your SAM file? And the version number of your samtools?
Could you please try:
This is because
-b
already givesbam
output and-S
assam
input. This might help.Thanks Rohit, but
samtools view -b -S -o bowtie.glob.bam bowtie.glob.sam
is the same command that I used.Also, what program generated that SAM file?