annotate pfamScan/Bio/Pfam/HMM/HMMUnit.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::HMMUnit;
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 subtype 'Domain'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
13 => as 'Int'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
14 => where { $_ > 0 };
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
15
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
16 #coerce 'Domain'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
17 # => from 'Str'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
18 # => via {
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
19 # my $d;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
20 # if(/(\d+)\/\d+/){
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
21 # $d = $1;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
22 # }
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
23 # return $d;
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 #subtype 'proteinCoos'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
28 # => as 'Int'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
29 # => where { $_ > 0 && $_ < 100000 }
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
30 # => message { 'Protein coordinates are expected to be positive and less the 100,000'};
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
31
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
32
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
33 has 'seqEvalue' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
34 isa => 'Num',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
35 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
36 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
37
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
38 has 'domain' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
39 isa => 'Domain',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
40 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
41 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
42
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
43 has 'seqFrom' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
44 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
45 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
46 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
47 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
48
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
49 has 'seqTo' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
50 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
51 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
52 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
53 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
54
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
55 #has 'indEvalue' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
56 # isa => 'evalue',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
57 # is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
58 # required => 1,
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
59 #);
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
60
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
61 has 'domEvalue' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
62 isa => 'evalue',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
63 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
64 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
65
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
66 has 'hmmalign' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
67 isa => 'HashRef',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
68 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
69 default => sub { {} },
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
70 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
71
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
72 has 'hmmFrom' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
73 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
74 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
75 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
76 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
77
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
78 has 'hmmTo' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
79 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
80 is => 'rw',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
81 required => 1
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
82 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
83
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
84 has 'envFrom' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
85 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
86 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
87 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
88
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
89 has 'envTo' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
90 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
91 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
92 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
93
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
94 has 'coreFrom' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
95 isa => 'Str',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
96 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
97 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
98
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
99 has 'coreTo' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
100 isa => 'Str',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
101 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
102 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
103
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
104 has 'aliAcc' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
105 isa => 'Num',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
106 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
107 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
108
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
109 has 'sig' => (
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
110 isa => 'Int',
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
111 is => 'rw'
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
112 );
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
113
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
114
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
115 __PACKAGE__->meta->make_immutable;
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
116
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
117 =head1 COPYRIGHT
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
118
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
119 Copyright (c) 2007: Genome Research Ltd.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
120
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
121 Authors: Rob Finn (rdf@sanger.ac.uk), John Tate (jt6@sanger.ac.uk)
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
122
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
123 This is free software; you can redistribute it and/or modify it under
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
124 the terms of the GNU General Public License as published by the Free Software
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
125 Foundation; either version 2 of the License, or (at your option) any later
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
126 version.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
127
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
128 This program is distributed in the hope that it will be useful, but WITHOUT
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
129 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
130 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
131 details.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
132
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
133 You should have received a copy of the GNU General Public License along with
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
134 this program. If not, see <http://www.gnu.org/licenses/>.
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
135
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
136 =cut
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
137
68a3648c7d91 Uploaded
matteoc
parents:
diff changeset
138 1;