1 # $Id: bioperl.lisp 15559 2009-02-23 12:11:20Z maj $
3 # BioPerl module for Bio::Search::Result::hmmer3Result
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
7 # Cared for by Thomas Sharpton <thomas.sharpton@gmail.com>
9 # Copyright Thomas Sharpton
11 # You may distribute this module under the same terms as perl itself
13 # POD documentation - main docs before the code
17 Bio::Search::Result::hmmer3Result - DESCRIPTION of Object
21 Give standard usage here
25 Describe the object here
31 User feedback is an integral part of the evolution of this and other
32 Bioperl modules. Send your comments and suggestions preferably to
33 the Bioperl mailing list. Your participation is much appreciated.
35 bioperl-l@bioperl.org - General discussion
36 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
40 Please direct usage questions or support issues to the mailing list:
42 L<bioperl-l@bioperl.org>
44 rather than to the module maintainer directly. Many experienced and
45 reponsive experts will be able look at the problem and quickly
46 address it. Please include a thorough description of the problem
47 with code and data examples if at all possible.
51 Report bugs to the Bioperl bug tracking system to help us keep track
52 of the bugs and their resolution. Bug reports can be submitted via
55 https://github.com/bioperl/bioperl-live/issues
57 =head1 AUTHOR - Thomas Sharpton
59 Email thomas.sharpton@gmail.com
61 Describe contact details here
65 Additional contributors names and emails here
69 The rest of the documentation details each of the object methods.
70 Internal methods are usually preceded with a _
75 # Let the code begin...
78 package Bio
::Search
::Result
::hmmer3Result
;
81 use base
qw(Bio::Search::Result::GenericResult);
86 Usage : my $obj = new Bio::Search::Result::hmmer3Result.pm();
87 Function: Builds a new Bio::Search::Result::hmmer3Result.pm object
88 Returns : an instance of Bio::Search::Result::hmmer3Result.pm
89 Args : -hmm_name => string, name of hmm file
90 -sequence_file => name of the sequence file
95 my($class,@args) = @_;
96 my $self = $class->SUPER::new
(@args);
98 my ($hmm,$seqfile) = $self->_rearrange([qw(HMM_NAME SEQUENCE_FILE)],
100 defined( $seqfile ) && $self->sequence_file( $seqfile );
101 defined( $hmm ) && $self->hmm_name( $hmm );
109 Usage : $obj->hmm_name($newval)
110 Function: Get/Set the value of hmm_name
111 Returns : value of hmm_name
112 Args : newvalue (optional)
118 my ($self,$value) = @_;
119 if( defined $value) {
120 $self->{'_hmm_name'} = $value;
122 return $self->{'_hmm_name'};
127 Title : sequence_file
128 Usage : $obj->sequence_file($newval)
129 Function: Get/Set the value of sequence_file
130 Returns : value of sequence_file
131 Args : newvalue (optional)
137 my ($self,$value) = @_;
138 if( defined $value) {
139 $self->{'_sequence_file'} = $value;
141 return $self->{'_sequence_file'};
148 Usage : my $domain = $result->next_model
149 Function: Returns the next domain - this
150 is an alias for next_hit
151 Returns : L<Bio::Search::Hit::HitI> object
157 sub next_model
{ shift->next_hit }
162 Usage : my @domains = $result->models;
163 Function: Returns the list of HMM models seen - this
164 is an alias for hits()
165 Returns : Array of L<Bio::Search::Hit::HitI> objects
171 sub models
{ shift->hits }
176 Usage : $result->rewind;
177 Function: Allow one to reset the Hit iteration to the beginning
178 Since this is an in-memory implementation
186 $self->{'_hitindex'} = 0;