Branch Coverage

Bio/Map/Gene.pm
Criterion Covered Total %
branch 74 142 52.1


line true false branch
137 0 4 unless $u_name
140 1 3 if defined $desc
163 6 4 if ($u_name and defined $Bio::Map::Gene::GENES->{$u_name})
164 0 6 if $desc
185 4 28 if (defined $value)
186 0 4 if $self->{'_uname'}
351 0 323 unless $map and $self->in_map($map)
354 353 323 if $pos->isa('Bio::Map::GenePosition')
381 0 2 unless $pos and $pos->isa('Bio::Map::GenePosition')
384 0 2 unless $self->in_map($map)
386 1 1 if (@transcripts == 0)
388 0 1 if ($pos->start != 0)
405 2 0 if ($increase > 0)
433 0 181 unless $map
436 173 8 if (@transcripts > 0)
437 3 170 if (defined $int) { }
438 3 0 if ($int > 0 and $int <= @transcripts) { }
448 170 0 if (defined $self->{'active_transcript'}{$map}) { }
475 0 285 unless $map
476 0 285 unless $map->isa('Bio::Map::GeneMap')
496 0 101 unless $map
499 4 97 if (@transcripts == 0 and $value == 0)
535 0 13 unless ref $thing
540 2 11 if ($thing->isa('Bio::Map::PositionI'))
543 1 1 if ($existing_pos)
591 0 23 unless $map
617 9 12 if (@exons == 0 and $exon_num == 1)
659 0 5 unless $map
710 0 0 unless $USE_ENSEMBL
711 0 0 unless 'Bio::Tools::Run::Ensembl'->registry_setup
712 0 0 unless defined $bool
714 0 0 unless (ref $self)
733 9 0 unless $SET_FROM_DB or $self->{'_set_from_db'}
755 0 0 unless ($trans_ref and @{$trans_ref;} > 0)
762 0 0 if ($pos->isa('Bio::Map::GenePosition'))
769 0 0 $strand == -1 ? :
785 0 0 $strand == -1 ? :
787 0 0 $strand == -1 ? :
796 0 0 if ($length > $longest_trans)
805 0 0 if $start > $end
812 0 0 $strand == -1 ? :
815 0 0 if (defined $transcript->coding_region_start)
818 0 0 if $atg > $stop
828 0 0 if $start > $end
830 0 0 ref $species ? :
831 0 0 unless defined $end
840 0 0 if $start > $end
857 39 289 if (defined $transcript_number and $transcript_number == 0)
863 328 1699 unless $pos->isa('Bio::Map::GenePosition')
864 1113 586 unless $pos->type eq $type
866 44 542 if (defined $transcript_number)
868 0 44 unless $rel->type eq 'transcript'
870 1 43 unless $rel_transcript_num == $transcript_number
880 43 285 if (defined $transcript_number) { }
890 13 272 unless $self->{'t_order'}{$map}
891 13 272 unless @known_order
894 272 0 if @known_order == @positions
898 0 0 unless exists $exists{$pos}
909 0 113 unless $wanted and $wanted > 0
910 2 111 unless @list > 0
912 110 1 if ($index >= 0 and $index <= $#list)
921 0 6 unless $pos and $pos->isa('Bio::Map::GenePosition')
924 0 6 unless $self->in_map($map)
930 0 6 unless $transcript_pos->end
931 0 6 unless $pos->end
932 0 6 unless ($transcript_pos->contains($pos))
945 1 1 unless $thing
947 0 1 if (ref $thing and $thing->isa('Bio::Map::GeneMap'))
951 0 1 if ($map and $map->isa('Bio::Map::GeneMap')) { }
963 0 7 unless $map
965 0 7 if (defined $self->{'_ensembl'}{$uid})