~ubuntu-branches/ubuntu/saucy/bioperl/saucy-proposed

« back to all changes in this revision

Viewing changes to Bio/SearchIO/hmmer_pull.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: hmmer_pull.pm,v 1.1.2.4 2006/10/02 23:10:26 sendu Exp $
 
1
# $Id: hmmer_pull.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#
3
3
# BioPerl module for Bio::SearchIO::hmmer_pull
4
4
#
18
18
 
19
19
    # do not use this class directly it is available through Bio::SearchIO
20
20
    use Bio::SearchIO;
21
 
    my $in = new Bio::SearchIO(-format => 'hmmer_pull',
 
21
    my $in = Bio::SearchIO->new(-format => 'hmmer_pull',
22
22
                               -file   => 't/data/hmmpfam.bigout');
23
23
    while (my $result = $in->next_result) {
24
24
        # this is a Bio::Search::Result::HmmpfamResult object
78
78
=head2 new
79
79
 
80
80
 Title   : new
81
 
 Usage   : my $obj = new Bio::SearchIO::hmmer_pull();
 
81
 Usage   : my $obj = Bio::SearchIO::hmmer_pull->new();
82
82
 Function: Builds a new Bio::SearchIO::hmmer_pull object 
83
83
 Returns : Bio::SearchIO::hmmer_pull
84
84
 Args    : -fh/-file => HMMER output filename
185
185
            
186
186
            my ($start, $end) = $self->_find_chunk_by_end("//\n");
187
187
            return if $start == $end;
188
 
            $self->_fields->{next_result} = new Bio::Search::Result::HmmpfamResult(-chunk => [($self->chunk, $start, $end)],
 
188
            $self->_fields->{next_result} = Bio::Search::Result::HmmpfamResult->new(-chunk => [($self->chunk, $start, $end)],
189
189
                                                                                   -parent => $self);
190
190
            
191
191
            $self->{_end_of_previous_result} = $end;
196
196
            # -piped_behaviour
197
197
            my $chunk = $self->_get_chunk_by_end("//\n");
198
198
            $chunk || return;
199
 
            $self->_fields->{next_result} = new Bio::Search::Result::HmmpfamResult(-chunk => [$chunk],
 
199
            $self->_fields->{next_result} = Bio::Search::Result::HmmpfamResult->new(-chunk => [$chunk],
200
200
                                                                                   -parent => $self);
201
201
        }
202
202
    }