~ubuntu-branches/ubuntu/raring/bioperl/raring

« back to all changes in this revision

Viewing changes to t/hmmer.t

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2008-03-18 14:44:57 UTC
  • mfrom: (4 hardy)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080318144457-1jjoztrvqwf0gruk
* debian/control:
  - Removed MIA Matt Hope (dopey) from the Uploaders field.
    Thank you for your work, Matt. I hope you are doing well.
  - Downgraded some recommended package to the 'Suggests' priority,
    according to the following discussion on Upstream's mail list.
    http://bioperl.org/pipermail/bioperl-l/2008-March/027379.html
    (Closes: #448890)
* debian/copyright converted to machine-readable format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*-Perl-*-
2
2
## Bioperl Test Harness Script for Modules
3
3
##
4
 
# $Id: hmmer.t,v 1.17 2003/12/15 17:36:11 jason Exp $
 
4
# $Id: hmmer.t,v 1.18 2004/11/11 18:29:10 jason Exp $
5
5
 
6
6
# Before `make install' is performed this script should be runnable with
7
7
# `make test'. After `make install' it should work as `perl test.t'
38
38
    ok($result->sequence_file, '/home/birney/src/wise2/example/road.pep');
39
39
    ok($result->query_name, 'roa1_drome');
40
40
    ok($result->query_description, '');
41
 
    ok($result->num_hits(), 1);
42
 
    while( my $hit = $result->next_model ) {
 
41
    ok($result->num_hits(), 2);
 
42
    my ($hsp,$hit);
 
43
    if( $hit = $result->next_model ) {
43
44
        ok($hit->name, 'SEED');
44
45
        ok($hit->raw_score, '146.1');
45
46
        ok($hit->significance, '6.3e-40');
46
47
        ok(ref($hit), 'Bio::Search::Hit::HMMERHit');
47
 
        ok($hit->num_hsps, 2);
48
 
        my $hsp = $hit->next_domain;
49
 
        if( defined $hsp ) {
 
48
        ok($hit->num_hsps, 1);
 
49
 
 
50
        if( defined( $hsp = $hit->next_domain ) ) {
50
51
            ok($hsp->hit->start, 1);
51
52
            ok($hsp->hit->end, 77);
52
53
            ok($hsp->query->start, 33);
60
61
            ok( length($hsp->homology_string), length($hsp->hit_string));
61
62
            ok( length($hsp->query_string), length($hsp->homology_string));
62
63
        }
63
 
        $hsp = $hit->next_domain;
64
 
        if( defined $hsp ) {
 
64
    }
 
65
    if( defined ($hit = $result->next_model) ) {
 
66
        if( defined($hsp = $hit->next_domain) ) {
65
67
            ok($hsp->hit->start, 1);
66
68
            ok($hsp->hit->end, 77);
67
69
            ok($hsp->query->start, 124);
75
77
            ok( length($hsp->homology_string), length($hsp->hit_string));
76
78
            ok( length($hsp->query_string), length($hsp->homology_string));
77
79
        }
 
80
        last;
78
81
    }
79
82
}
80
83
$searchio = new Bio::SearchIO(-format => 'hmmer',