/usr/lib/x86_64-linux-gnu/perl5/5.24/Bio/DB/Bam/ReadIterator.pm is in libbio-samtools-perl 1.43-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | package Bio::DB::Bam::ReadIterator;
use strict;
sub new {
my $self = shift;
my ($sam,$bam,$filter) = @_;
return bless {sam => $sam,
bam => $bam,
filter=> $filter},ref $self || $self;
}
sub next_seq {
my $self = shift;
while (my $b = $self->{bam}->read1) {
return Bio::DB::Bam::AlignWrapper->new($b,$self->{sam})
if $self->{filter}->($b);
}
return;
}
1;
|