[Bioperl-guts-l] [14831] bioperl-live/trunk/Bio/LocatableSeq.pm: Update documentation
Christopher John Fields
cjfields at dev.open-bio.org
Wed Aug 27 11:00:07 EDT 2008
Revision: 14831
Author: cjfields
Date: 2008-08-27 11:00:07 -0400 (Wed, 27 Aug 2008)
Log Message:
-----------
Update documentation
Modified Paths:
--------------
bioperl-live/trunk/Bio/LocatableSeq.pm
Modified: bioperl-live/trunk/Bio/LocatableSeq.pm
===================================================================
--- bioperl-live/trunk/Bio/LocatableSeq.pm 2008-08-27 14:59:21 UTC (rev 14830)
+++ bioperl-live/trunk/Bio/LocatableSeq.pm 2008-08-27 15:00:07 UTC (rev 14831)
@@ -12,7 +12,7 @@
=head1 NAME
-Bio::LocatableSeq - A Sequence object with start/end points on it
+Bio::LocatableSeq - A Bio::PrimarySeq object with start/end points on it
that can be projected into a MSA or have coordinates relative to
another seq.
@@ -89,7 +89,6 @@
$MATCHPATTERN = '0-9A-Za-z\-\.\*\?=~';
-
use base qw(Bio::PrimarySeq Bio::RangeI);
sub new {
@@ -119,14 +118,14 @@
=cut
sub start{
- my $self = shift;
- if( @_ ) {
- my $value = shift;
- $self->{'start'} = $value;
- }
- return $self->{'start'} if defined $self->{'start'};
- return 1 if $self->seq;
- return;
+ my $self = shift;
+ if( @_ ) {
+ my $value = shift;
+ $self->{'start'} = $value;
+ }
+ return $self->{'start'} if defined $self->{'start'};
+ return 1 if $self->seq;
+ return;
}
=head2 end
@@ -170,7 +169,8 @@
Title : strand
Usage : $obj->strand($newval)
- Function:
+ Function: Get/set the 1-based end position of this sequence in the original
+ sequence. '0' means before the original sequence starts.
Returns : value of strand
Args : newvalue (optional)
More information about the Bioperl-guts-l
mailing list