blib/lib/Bio/DB/GFF/Aggregator/wormbase_gene.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
method
2.0
part_names
2.0
main_name
2.0
CRAP 2.0
1 =head1 NAME
2  
3 Bio::DB::GFF::Aggregator::wormbase_gene -- Wormbase gene aggregator
4  
5 =head1 SYNOPSIS
6  
7 use Bio::DB::GFF;
8  
9 # Open the sequence database
10 my $db = Bio::DB::GFF->new( -adaptor => 'dbi:mysql',
11 -dsn => 'dbi:mysql:elegans42',
12 -aggregator => ['wormbase_gene','clone'],
13 );
14  
15 -------------------------------------------------------------------------------------
16 Aggregator method: transcript
17 Main method: Sequence
18 Sub methods: CDS UTR TSS PolyA
19 -------------------------------------------------------------------------------------
20  
21 =head1 DESCRIPTION
22  
23 This aggregator was written to be compatible with the C elegans GFF
24 files. It aggregates raw "CDS", "5'UTR", "3'UTR", "polyA" and "TSS"
25 features into "transcript" features. For compatibility with the
26 idiosyncrasies of the Sanger GFF format, it expects that the full
27 range of the transcript is contained in a main feature of type
28 "Sequence".
29  
30 =cut
31  
32 package Bio::DB::GFF::Aggregator::wormbase_gene;
33  
34 use strict;
35 use Bio::DB::GFF::Aggregator;
36  
37 use vars qw($VERSION @ISA);
38 @ISA = qw(Bio::DB::GFF::Aggregator);
39  
40 $VERSION = '0.30';
41  
42 =head2 method
43  
44 Title : method
45 Usage : $aggregator->method
46 Function: return the method for the composite object
47 Returns : the string "transcript"
48 Args : none
49 Status : Public
50  
51 =cut
52  
53 sub method { 'transcript' }
54  
55 # sub require_whole_object { 1; }
56  
57 =head2 part_names
58  
59 Title : part_names
60 Usage : $aggregator->part_names
61 Function: return the methods for the sub-parts
62 Returns : the list "CDS", "UTR", "TSS", "PolyA"
63 Args : none
64 Status : Public
65  
66 =cut
67  
68 sub part_names {
69 return qw(CDS UTR TSS PolyA);
70 }
71  
72 =head2 main_name
73  
74 Title : main_name
75 Usage : $aggregator->main_name
76 Function: return the method for the main component
77 Returns : the string "Sequence"
78 Args : none
79 Status : Public
80  
81 =cut
82  
83 sub main_name {
84 return 'Sequence';
85 }
86  
87 1;
88 __END__