lib/Bio/Tradis/DetectTags.pm

filter: Statementstmt 77.2% 17 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 72.4% 21 / 29 CC 2 SCAR 5.9
CC
2
Cov
71%
tags_present
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/Bio/Tradis.pm ↑ Summary lib/Bio/Tradis/Parser/Fastq.pm »
1 package Bio::Tradis::DetectTags;
2 1 $Bio::Tradis::DetectTags::VERSION = '1.4.5';
3 # ABSTRACT: Detect tr tags in BAM file
4  
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 use Bio::Tradis::Parser::Bam
8  
9 1 ▶has 'bamfile' => ( is => 'ro', isa => 'Str', required => 1 );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 has 'samtools_exec' => ( is => 'rw', isa => 'Str', default => 'samtools' );
11  
12 1 ▶sub tags_present {
Subroutine tags_present: called CC=2 SCAR=11.1
Pod undocumented
13 1 my ($self) = @_;
14 1 my $pars = Bio::Tradis::Parser::Bam->new( file => $self->bamfile, samtools_exec => $self->samtools_exec );
15 1 my $read_info = $pars->read_info;
16 1 $pars->next_read;
17 0 $read_info = $pars->read_info;
18 0 ▶ if(defined(${$read_info}{tr}))
Branch: 1 branch
BranchTrueFalseTotal
if (defined do { $read_info }->{'tr'}) { } 0 0 0
19 {
20 0 return 1;
21 }
22 else
23 {
24 0 return 0;
25 }
26
27 }
28  
29 1 __PACKAGE__->meta->make_immutable;
30 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 1;
32  
33 __END__
« blib/lib/Bio/Tradis.pm ↑ Summary lib/Bio/Tradis/Parser/Fastq.pm »