There seems to be an issue with iterating over alignments in a SAM file. I get the errors
[E::sam_parse1] missing SAM header
[W::sam_read1] parse error at line 4
although there are headers.
Code for reproducing the problem:
use Bio::DB::HTS;
my $sam = Bio::DB::HTS->new(-bam => 'test.sam');
my $alignment_iterator = $sam->features(-iterator => 1);
$alignment_iterator->next_seq;
Hi,
There seems to be an issue with iterating over alignments in a SAM file. I get the errors
although there are headers.
Code for reproducing the problem:
and test.sam:
samtools can view the SAM without problems.