~ubuntu-branches/ubuntu/trusty/bioperl/trusty

« back to all changes in this revision

Viewing changes to Bio/SearchIO/hmmer2.pm

  • Committer: Package Import Robot
  • Author(s): Charles Plessy
  • Date: 2013-09-22 13:39:48 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130922133948-c6z62zegjyp7ztou
Tags: 1.6.922-1
* New upstream release.
* Replaces and Breaks grinder (<< 0.5.3-3~) because of overlaping contents.
  Closes: #722910
* Stop Replacing and Breaking bioperl ( << 1.6.9 ): not needed anymore. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    );
139
139
}
140
140
 
141
 
=head2 new
142
 
 
143
 
 Title   : new
144
 
 Usage   : my $obj = Bio::SearchIO::hmmer2->new();
145
 
 Function: Builds a new Bio::SearchIO::hmmer2 object
146
 
 Returns : Bio::SearchIO::hmmer2
147
 
 Args    : -fh/-file => HMMER filename
148
 
           -format   => 'hmmer2'
149
 
 
150
 
=cut
151
 
 
152
 
sub _initialize {
153
 
    my ( $self, @args ) = @_;
154
 
    $self->SUPER::_initialize(@args);
155
 
    $self->{'_hmmidline'} = 'HMMER 2.2g (August 2001)';
156
 
}
157
 
 
158
141
=head2 next_result
159
142
 
160
143
 Title   : next_result
192
175
            $seentop = 1;
193
176
            if ( defined $last ) {
194
177
                ($reporttype) = split( /\s+/, $last );
 
178
                $reporttype = uc($reporttype) if defined $reporttype;
195
179
                $self->element(
196
180
                    {
197
181
                        'Name' => 'HMMER_program',
198
 
                        'Data' => uc($reporttype)
 
182
                        'Data' => $reporttype
199
183
                    }
200
184
                );
201
185
            }
236
220
            if ( !$seentop ) {
237
221
 
238
222
                # we're in a multi-query report
 
223
                $self->_pushback($lineorig);
 
224
                $self->_pushback( $self->{'_hmmseqline'} );
 
225
                $self->_pushback( $self->{'_hmmfileline'} );
239
226
                $self->_pushback( $self->{'_hmmidline'} );
240
 
                $self->_pushback( $self->{'_hmmfileline'} );
241
 
                $self->_pushback( $self->{'_hmmseqline'} );
242
 
                $self->_pushback($lineorig);
243
227
                next;
244
228
            }
245
229
            s/\s+$//;
879
863
                        }
880
864
                        elsif (CORE::length($_) == 0
881
865
                            || ( $count != 1 && /^\s+$/o )
882
 
                            || /^\s+\-?\*\s*$/ )
 
866
                            || /^\s+\-?\*\s*$/
 
867
                            || /^\s+\S+\s+\-\s+\-\s*$/ )
883
868
                        {
884
869
                            next;
885
870
                        }