3 Bio::DB::GFF::Aggregator::transcript -- Transcript aggregator
9 # Open the sequence database
10 my $db = Bio::DB::GFF->new( -adaptor => 'dbi:mysql',
11 -dsn => 'dbi:mysql:elegans42',
12 -aggregator => ['transcript','clone'],
15 -------------------------------------------------
16 Aggregator method: transcript
17 Main method: transcript
18 Sub methods: exon CDS 5'UTR 3'UTR TSS PolyA
19 -------------------------------------------------
23 Bio::DB::GFF::Aggregator::transcript is one of the default
24 aggregators, and was written to be compatible with the C elegans GFF
25 files. It aggregates raw ""exon", "CDS", "5'UTR", "3'UTR", "polyA"
26 and "TSS" features into "transcript" features. For compatibility with
27 the idiosyncrasies of the Sanger GFF format, it expects that the full
28 range of the transcript is contained in a main feature of type
29 "Transcript" (notice the capital "T").
31 Internally this module is very simple. To override it with one that
32 recognizes a main feature named "gene", simply follow this
35 my $db = Bio::DB::GFF->new(...etc...)
36 my $aggregator = Bio::DB::GFF::Aggregator->new(-method => 'transcript',
37 -main_method => 'gene',
38 -sub_parts => ['exon','CDS']);
39 $db->add_aggregator($aggregator);
43 package Bio
::DB
::GFF
::Aggregator
::transcript
;
47 use base
qw(Bio::DB::GFF::Aggregator);
52 Usage : $aggregator->method
53 Function: return the method for the composite object
54 Returns : the string "transcript"
60 sub method
{ 'transcript' }
65 Usage : $aggregator->part_names
66 Function: return the methods for the sub-parts
67 Returns : the list "intron", "exon" and "CDS"
74 return qw(exon CDS 5'UTR 3'UTR TSS PolyA);
80 Usage : $aggregator->main_name
81 Function: return the method for the main component
82 Returns : the string "transcript"
102 L<Bio::DB::GFF>, L<Bio::DB::GFF::Aggregator>
106 Lincoln Stein E<lt>lstein@cshl.orgE<gt>.
108 Copyright (c) 2001 Cold Spring Harbor Laboratory.
110 This library is free software; you can redistribute it and/or modify
111 it under the same terms as Perl itself.