I'm trying to convert a BLAT .psl file to a BAM file.
I've managed to convert the .psl to a SAM file using the psl2sam.pl script. Converting the SAM to BAM is giving me problems. I'm attempting the following:
samtools view -bS -t chicken.ref_List -o mtcontigs_test.bam mtcontigs_test.sam
and getting ...
[sam_header_read2] 34 sequences loaded.
Parse error at line 25: invalid CIGAR character
Aborted (core dumped)
So, I check line 25 and my CIGAR column has this:
47H78M38I-921M1025H
Where are these hyphens coming from? They're in quite a few of my entries. I can't find any reference as to what they might be so I can't figure out if I just need to delete them or replace them with something else.
Anyone seen something like this?
I've managed to convert the .psl to a SAM file using the psl2sam.pl script. Converting the SAM to BAM is giving me problems. I'm attempting the following:
samtools view -bS -t chicken.ref_List -o mtcontigs_test.bam mtcontigs_test.sam
and getting ...
[sam_header_read2] 34 sequences loaded.
Parse error at line 25: invalid CIGAR character
Aborted (core dumped)
So, I check line 25 and my CIGAR column has this:
47H78M38I-921M1025H
Where are these hyphens coming from? They're in quite a few of my entries. I can't find any reference as to what they might be so I can't figure out if I just need to delete them or replace them with something else.
Anyone seen something like this?
Comment