3 Bio::DB::GFF::Featname -- The name of a feature
9 my $db = Bio::DB::GFF->new( -adaptor => 'dbi:mysql',
10 -dsn => 'dbi:mysql:elegans42');
12 my $feature = Bio::DB::GFF::Featname->new(Locus => 'unc-19');
13 my $segment = $db->segment($feature);
17 Bio::DB::GFF::Featname is the name of a feature. It contains two
18 fields: name and class. It is typically used by the Bio::DB::GFF
19 module to denote a group, and is accepted by
20 Bio::DB::Relsegment-E<gt>new() and Bio::DB::GFF-E<gt>segment() as a
21 replacement for the -name and -class arguments.
27 package Bio
::DB
::GFF
::Featname
;
29 use base
qw(Bio::Root::RootI);
38 Usage : $name = Bio::DB::GFF::Featname->new($class,$name)
39 Function: create a new Bio::DB::GFF::Featname object
40 Returns : a new Bio::DB::GFF::Featname object
47 # use a blessed array for speed
49 bless [@_],$pack; # class,name
52 sub _cleanup_methods
{ return; }
57 Usage : $id = $name->id
58 Function: return a unique ID for the combination of class and name
63 This method returns a unique combination of the name and class in the
64 form "class:name". Coincidentally, this is the same format used
71 return join ':',@
$self;
77 Usage : $name = $name->name
78 Function: return the name of the Featname
85 sub name
{ shift->[1] }
90 Usage : $class = $name->class
91 Function: return the name of the Featname
98 sub class { shift->[0] }
103 Usage : $string = $name->asString
104 Function: same as name()
109 This method is used to overload the "" operator. It is equivalent to
114 sub asString
{ shift->name }
119 Usage : $new_clone = $type->clone;
120 Function: clone this object
121 Returns : a new Bio::DB::GFF::Featname object
125 This method creates an exact copy of the object.
131 return bless [@
$self],ref $self;
136 This module is still under development.
140 L<bioperl>, L<Bio::DB::GFF>, L<Bio::DB::RelSegment>
144 Lincoln Stein E<lt>lstein@cshl.orgE<gt>.
146 Copyright (c) 2001 Cold Spring Harbor Laboratory.
148 This library is free software; you can redistribute it and/or modify
149 it under the same terms as Perl itself.