3 Bio::DB::GFF::Homol -- A segment of DNA that is homologous to another
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
16 A Homol object is typically returned as the method result of the
17 Bio::DB::GFF::Feature-E<gt>target() method.
23 package Bio
::DB
::GFF
::Homol
;
26 use base
qw(Bio::DB::GFF::Segment);
31 Usage : $name = $homol->name
32 Function: get the ID of the homology object
39 sub name
{ shift->refseq }
44 Usage : $name = $homol->asString
45 Function: same as name(), for operator overloading
52 sub asString
{ shift->name }
58 Usage : $id = $homol->id
59 Function: get database ID in class:id format
68 return "$self->{class}:$self->{name}";
71 sub new_from_segment
{
73 $package = ref $package if ref $package;
76 @
{$new}{qw(factory sourceseq start stop strand class ref refstart refstrand)}
77 = @
{$segment}{qw(factory sourceseq start stop strand class ref refstart refstrand)};
78 return bless $new,__PACKAGE__
;
83 This module is still under development.
87 L<bioperl>, L<Bio::DB::GFF>, L<Bio::DB::RelSegment>
91 Lincoln Stein E<lt>lstein@cshl.orgE<gt>.
93 Copyright (c) 2001 Cold Spring Harbor Laboratory.
95 This library is free software; you can redistribute it and/or modify
96 it under the same terms as Perl itself.