Branch Coverage

blib/lib/GenOO/GeneCollection/Factory/GTF.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
105 2286 540 unless $record->feature eq 'exon' or $record->feature eq 'start_codon' or $record->feature eq 'stop_codon'
106 0 3522 unless my $tid = $record->attribute('transcript_id')
108 0 3522 unless my $gid = $record->attribute('gene_id')
111 0 3522 if ($record->strand == 0)
117 348 3174 if (not defined $transcript) { }
130 156 192 unless (exists $genes{$gid})
136 180 2994 if $record->start < $transcript->start
137 3174 0 if $record->stop > $transcript->stop
140 2982 540 if ($record->feature eq 'exon') { }
270 270 elsif ($record->feature eq 'start_codon') { }
270 0 elsif ($record->feature eq 'stop_codon') { }
145 168 102 if ($record->strand == 1 and !defined($transcript->coding_start) || $record->start < $transcript->coding_start) { }
102 0 elsif ($record->strand == -1 and !defined($transcript->coding_stop) || $record->stop > $transcript->coding_stop) { }
159 168 102 if ($record->strand == 1 and !defined($transcript->coding_stop) || $record->stop > $transcript->coding_stop) { }
102 0 elsif ($record->strand == -1 and !defined($transcript->coding_start) || $record->start < $transcript->coding_start) { }
188 0 192 unless ($gene->overlaps($tr))