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

« back to all changes in this revision

Viewing changes to Bio/Search/Result/HmmpfamResult.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: HmmpfamResult.pm,v 1.1.2.4 2006/10/02 23:10:24 sendu Exp $
 
1
# $Id: HmmpfamResult.pm 14984 2008-11-11 18:39:20Z sendu $
2
2
#
3
3
# BioPerl module for Bio::Search::Result::HmmpfamResult
4
4
#
19
19
 
20
20
    # generally we use Bio::SearchIO to build these objects
21
21
    use Bio::SearchIO;
22
 
    my $in = new Bio::SearchIO(-format => 'hmmer_pull',
 
22
    my $in = Bio::SearchIO->new(-format => 'hmmer_pull',
23
23
                                                           -file   => 'result.hmmer');
24
24
 
25
25
    while (my $result = $in->next_result) {
74
74
=head2 new
75
75
 
76
76
 Title   : new
77
 
 Usage   : my $obj = new Bio::SearchIO::Result::hmmpfam();
 
77
 Usage   : my $obj = Bio::SearchIO::Result::hmmpfam->new();
78
78
 Function: Builds a new Bio::SearchIO::Result::hmmpfam object 
79
79
 Returns : Bio::SearchIO::Result::hmmpfam
80
80
 Args    : -chunk  => [Bio::Root::IO, $start, $end] (required if no -parent)
207
207
                
208
208
                $self->{_after_previous_alignment} = $self->_chunk_tell;
209
209
                $self->{_next_alignment_start_text} = $chunk;
210
 
                $self->_next_alignment;
211
 
                return;
 
210
                return $self->_next_alignment;
212
211
        }
213
212
        
214
213
        $self->_chunk_seek($self->{_after_previous_alignment});
228
227
        if (defined $self->{_next_alignment_start_text}) {
229
228
                $chunk = $self->{_next_alignment_start_text}.$chunk;
230
229
        }
 
230
        
231
231
        $chunk =~ s/(\S+: domain)$//;
232
232
        $self->{_next_alignment_start_text} = $1;
233
233
        
244
244
        #[name description score significance num_hsps rank]
245
245
        my @hit_data = (@{$hit_table[$self->{_next_hit_index}++]}, $self->{_next_hit_index});
246
246
        
247
 
        $self->_fields->{next_hit} = new Bio::Search::Hit::HmmpfamHit(-parent => $self,
 
247
        $self->_fields->{next_hit} = Bio::Search::Hit::HmmpfamHit->new(-parent => $self,
248
248
                                                                                                                                  -hit_data => \@hit_data);
249
249
        
250
250
        if ($self->{_next_hit_index} > $#hit_table) {