GFF/Homol.pm

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 75.0% 3 / 4 totaltotal 53.1% 17 / 32 CC 2 SCAR 9.4
CC
2
Cov
45%
new_from_segment
6.0
id
2.0
BEGIN
1.0
CRAP 2.6
« GFF/Adaptor/memory/feature_serializer.pm ↑ Summary GFF/Aggregator/match.pm »
1 =head1 NAME
2  
3 Bio::DB::GFF::Homol -- A segment of DNA that is homologous to another
4  
5 =head1 SYNOPSIS
6  
7 See L<Bio::DB::GFF>.
8  
9 =head1 DESCRIPTION
10  
11 Bio::DB::GFF::Homol is a named subtype of Bio::DB::GFF::Segment. It
12 inherits all the methods of its parent, and was created primarily to
13 allow for isa() queries and for compatibility with
14 Ace::Sequence::Homol.
15  
16 A Homol object is typically returned as the method result of the
17 Bio::DB::GFF::Feature-E<gt>target() method.
18  
19 =head1 METHODS
20  
21 =cut
22  
23 package Bio::DB::GFF::Homol;
24 37 $Bio::DB::GFF::Homol::VERSION = '1.7.4';
25 37 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 37 ▶use base qw(Bio::DB::GFF::Segment);
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 =head2 name
30  
31 Title : name
32 Usage : $name = $homol->name
33 Function: get the ID of the homology object
34 Returns : a string
35 Args : none
36 Status : Public
37  
38 =cut
39  
40 308 ▶sub name { shift->refseq }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
41  
42 =head2 asString
43  
44 Title : asString
45 Usage : $name = $homol->asString
46 Function: same as name(), for operator overloading
47 Returns : a string
48 Args : none
49 Status : Public
50  
51 =cut
52  
53 308 ▶sub asString { shift->name }
Subroutine asString: called CC=1 SCAR=0.0
Pod documented
54  
55  
56 =head2 id
57  
58 Title : id
59 Usage : $id = $homol->id
60 Function: get database ID in class:id format
61 Returns : a string
62 Args : none
63 Status : Public
64  
65 =cut
66  
67 0 ▶sub id {
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
68 0 my $self = shift;
69 0 return "$self->{class}:$self->{name}";
70 }
71  
72 0 ▶sub new_from_segment {
Subroutine new_from_segment: not called CC=2 SCAR=17.9
Pod undocumented
73 0 my $package = shift;
74 0 ▶ $package = ref $package if ref $package;
Branch: 1 branch
BranchTrueFalseTotal
if ref $package 0 0 0
75 0 my $segment = shift;
76 0 my $new = {};
77 0 @{$new}{qw(factory sourceseq start stop strand class ref refstart refstrand)}
78 0 = @{$segment}{qw(factory sourceseq start stop strand class ref refstart refstrand)};
79 0 return bless $new,__PACKAGE__;
80 }
81  
82 =head1 BUGS
83  
84 This module is still under development.
85  
86 =head1 SEE ALSO
87  
88 L<bioperl>, L<Bio::DB::GFF>, L<Bio::DB::RelSegment>
89  
90 =head1 AUTHOR
91  
92 Lincoln Stein E<lt>lstein@cshl.orgE<gt>.
93  
94 Copyright (c) 2001 Cold Spring Harbor Laboratory.
95  
96 This library is free software; you can redistribute it and/or modify
97 it under the same terms as Perl itself.
98  
99 =cut
100  
101 37 1;
« GFF/Adaptor/memory/feature_serializer.pm ↑ Summary GFF/Aggregator/match.pm »