annotate pfamScan/Bio/Pfam/HMM/HMMSequence.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
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
2 package Bio::Pfam::HMM::HMMSequence;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
3
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
4 use strict;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
5 use warnings;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
6
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
7 use Moose;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
8 use Moose::Util::TypeConstraints;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
9
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
10 extends 'Bio::Pfam::HMM::HMMMatch';
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
11
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
12
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
13 has sumEvalue => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
14 isa => 'evalue',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
15 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
16 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
17
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
18
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
19 has H2mode => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
20 isa => 'Str',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
21 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
22 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
23
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
24 has sumScore => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
25 isa => 'Num',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
26 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
27 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
28
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
29 has desc => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
30 isa => 'Str',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
31 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
32 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
33 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
34
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
35 has numberHits => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
36 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
37 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
38 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
39 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
40
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
41
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
42
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
43 has 'exp' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
44 isa => 'Num',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
45 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
46 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
47
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
48
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
49 has hmmUnits => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
50 isa => "ArrayRef[ Bio::Pfam::HMM::HMMUnit ]",
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
51 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
52 default => sub { [] }
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
53 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
54
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
55
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
56 #-------------------------------------------------------------------------------
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
57 =head1 Subroutines
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
58
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
59 =head2 addHMMUnit
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
60
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
61 Title : addHMMUnit
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
62 Usage : $hmmseq->addHMMUnit($hmmUnit)
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
63 Function : Adds a hmmUnit to a sequence. It checks that the variable passed in is a Bio::Pfam::HMM::HMMUnit oject
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
64 Args : A Bio::Pfam::HMM::HMMUnit oject
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
65 Returns : Nothing
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
66
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
67 =cut
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
68
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
69 sub addHMMUnit {
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
70 my ( $self, $hmmUnit ) = @_;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
71 if($hmmUnit->isa("Bio::Pfam::HMM::HMMUnit")){
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
72 push(@{$self->hmmUnits}, $hmmUnit);
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
73 }else{
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
74 warn "$hmmUnit is not a Bio::Pfam::HMM::HMMUnit, not added\n";
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
75 }
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
76 }
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
77
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
78
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
79 __PACKAGE__->meta->make_immutable;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
80
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
81 =head1 COPYRIGHT
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
82
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
83 Copyright (c) 2007: Genome Research Ltd.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
84
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
85 Authors: Rob Finn (rdf@sanger.ac.uk), John Tate (jt6@sanger.ac.uk)
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
86
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
87 This is free software; you can redistribute it and/or modify it under
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
88 the terms of the GNU General Public License as published by the Free Software
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
89 Foundation; either version 2 of the License, or (at your option) any later
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
90 version.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
91
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
92 This program is distributed in the hope that it will be useful, but WITHOUT
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
93 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
94 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
95 details.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
96
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
97 You should have received a copy of the GNU General Public License along with
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
98 this program. If not, see <http://www.gnu.org/licenses/>.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
99
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
100 =cut
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
101
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
102 1;