| 0 | 1 package Bio::Pfam::Scan::Seq; | 
|  | 2 | 
|  | 3 use strict; | 
|  | 4 use warnings; | 
|  | 5 | 
|  | 6 use Bio::LocatableSeq; | 
|  | 7 use Bio::Seq::RichSeq; | 
|  | 8 | 
|  | 9 use base qw(Bio::LocatableSeq Bio::Seq::RichSeq); | 
|  | 10 | 
|  | 11 sub new { | 
|  | 12   my($class, %params ) = @_; | 
|  | 13   my( $id, $start, $end, $seq) = | 
|  | 14       ( | 
|  | 15        ($params{'-ID'}          || $params{'-id'}), | 
|  | 16        ($params{'-START'}       || $params{'-start'}), | 
|  | 17        ($params{'-END'}         || $params{'-end'}), | 
|  | 18        ($params{'-SEQ'}         || $params{'-seq'}), | 
|  | 19        ); | 
|  | 20 | 
|  | 21   my $self = $class->SUPER::new( %params );  # this is Bio::Pfam::Root | 
|  | 22                       # so we have to set Bio::LocatableSeq fields ourself | 
|  | 23 | 
|  | 24 | 
|  | 25 | 
|  | 26 | 
|  | 27   $self->id( $id ); | 
|  | 28   $self->start( $start ); | 
|  | 29   $self->end( $end ); | 
|  | 30   $self->seq( $seq ); | 
|  | 31 | 
|  | 32 | 
|  | 33   return $self; # success - we hope! | 
|  | 34 } | 
|  | 35 | 
|  | 36 =head1 COPYRIGHT | 
|  | 37 | 
|  | 38 Copyright (c) 2007: Genome Research Ltd. | 
|  | 39 | 
|  | 40 Authors: Rob Finn (rdf@sanger.ac.uk), John Tate (jt6@sanger.ac.uk) | 
|  | 41 | 
|  | 42 This is free software; you can redistribute it and/or modify it under | 
|  | 43 the terms of the GNU General Public License as published by the Free Software | 
|  | 44 Foundation; either version 2 of the License, or (at your option) any later | 
|  | 45 version. | 
|  | 46 | 
|  | 47 This program is distributed in the hope that it will be useful, but WITHOUT | 
|  | 48 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 
|  | 49 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 
|  | 50 details. | 
|  | 51 | 
|  | 52 You should have received a copy of the GNU General Public License along with | 
|  | 53 this program. If not, see <http://www.gnu.org/licenses/>. | 
|  | 54 | 
|  | 55 =cut | 
|  | 56 | 
|  | 57 1 |