annotate pfamScan/Bio/Pfam/Scan/Seq.pm @ 0:68a3648c7d91 draft default tip

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