Branch Coverage

blib/lib/CracTools/SAMReader/SAMline.pm
Criterion Covered Total %
branch 67 126 53.1


line true false branch
33 0 2 unless defined $line and defined $event_type
49 1 15 defined $extended_fields{$key} ? :
84 0 0 if ($self->isFlagged($flags{'REVERSE_COMPLEMENTED'})) { }
94 0 0 if ($self->isFlagged($flags{'REVERSE_COMPLEMENTED'})) { }
111 0 0 unless defined $line_number
112 0 0 if ($self->updatedLine ne $self->line) { }
134 1 2 if (defined $updated_line) { }
1 1 elsif (not defined $self->{'updated_line'}) { }
148 1 2 if (defined $new_qname)
158 1 5 if (defined $new_flag)
168 3 4 if (defined $new_rname)
184 1 2 if (defined $new_pos)
194 1 2 if (defined $new_mapq)
204 1 3 if (defined $new_cigar)
214 1 2 if (defined $new_rnext)
224 1 2 if (defined $new_pnext)
234 1 2 if (defined $new_tlen)
244 1 3 if (defined $new_seq)
254 1 2 if (defined $new_qual)
264 0 1 unless defined $field
273 1 0 if (defined $self->{'extended_fields'}{'SA'})
279 1 1 if ($strand eq '+') { }
304 2 1 unless defined $ops_occ{$op}
328 1 0 if (defined $self->{'extended_fields'}{'XP'}{'chimera'}) { }
342 1 2 if (defined $self->{'extended_fields'}{'XP'}{'loc'} and ref $self->{'extended_fields'}{'XP'}{'loc'} ne 'HASH')
354 0 2 if (not defined $key) { }
1 1 elsif (defined $value) { }
368 0 2 unless defined $class
370 1 1 if ($class eq 'unique') { }
0 1 elsif ($class eq 'duplicated') { }
1 0 elsif ($class eq 'multiple') { }
0 0 elsif ($class eq 'normal') { }
0 0 elsif ($class eq 'almostNormal') { }
377 0 0 defined $self->{'extended_fields'}{'XN'} ? :
379 0 0 defined $self->{'extended_fields'}{'XN'} ? :
390 3 0 if (defined $self->{'events'}{$event_type}) { }
405 1 2 if (not defined $self->{'events'} and defined $self->{'extended_fields'}{'XE'})
411 0 1 if defined $event_type_to_load and $event_type ne $event_type_to_load
412 1 0 if (defined $event_id)
414 1 0 if ($event_type eq 'junction') { }
0 0 elsif ($event_type eq 'ins' or $event_type eq 'del') { }
0 0 elsif ($event_type eq 'snp') { }
0 0 elsif ($event_type eq 'error') { }
0 0 elsif ($event_type eq 'chimera') { }
0 0 elsif ($event_type eq 'undetermined') { }
0 0 elsif ($event_type eq 'bioundetermined') { }
466 1 0 if (keys %event_hash > 1)
489 0 2 if (defined $self->{'events'}{$event_type}) { }
501 1 1 if (defined $type and defined $self->{'events'}{$type})
504 1 0 if ($event eq $delete_event)
526 1 0 if ($self->removeEvent($event)) { }
532 1 0 if ($new_event_type eq 'Junction') { }
0 0 elsif ($new_event_type eq 'Ins' or $new_event_type eq 'Del') { }
0 0 elsif ($new_event_type eq 'SNP') { }
0 0 elsif ($new_event_type eq 'Error') { }
0 0 elsif ($new_event_type eq 'chimera') { }
0 0 elsif ($new_event_type eq 'Undetermined') { }
0 0 elsif ($new_event_type eq 'BioUndetermined') { }
591 1 1 if (not defined $self->{'sam_detailed'})
597 1 1 if ($k eq 'p_loc') { }
1 0 elsif ($k eq 'p_support') { }
613 1 3 if (defined $self->{'extended_fields'}{'XP'} and ref $self->{'extended_fields'}{'XP'} ne 'HASH')
633 0 1 unless defined $chr and defined $pos and defined $strand