Bio::DB::GFF
Homol
Toolbar
Summary
Bio::DB::GFF::Homol -- A segment of DNA that is homologous to another
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
Description
Bio::DB::GFF::Homol is a named subtype of Bio::DB::GFF::Segment. It
inherits all the methods of its parent, and was created primarily to
allow for isa() queries and for compatibility with
Ace::Sequence::Homol.
A Homol object is typically returned as the method result of the
Bio::DB::GFF::Feature->target() method.
Methods
Methods description
Title : asString Usage : $name = $homol->asString Function: same as name(), for operator overloading Returns : a string Args : none Status : Public |
Title : id Usage : $id = $homol->id Function: get database ID in class:id format Returns : a string Args : none Status : Public |
Title : name Usage : $name = $homol->name Function: get the ID of the homology object Returns : a string Args : none Status : Public |
Methods code
sub asString
{ shift->name } |
sub id
{ my $self = shift;
return "$self->{class}:$self->{name}"; } |
sub name
{ shift->refseq } |
new_from_segment | description | prev | next | Top |
sub new_from_segment
{ my $package = shift;
$package = ref $package if ref $package;
my $segment = shift;
my $new = {};
@{$new}{qw(factory sourceseq start stop strand class ref refstart refstrand)}
= @{$segment}{qw(factory sourceseq start stop strand class ref refstart refstrand)};
return bless $new,__PACKAGE__; } |
General documentation
This module is still under development.
Lincoln Stein <lstein@cshl.org>.
Copyright (c) 2001 Cold Spring Harbor Laboratory.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.