File: wise.t

package info (click to toggle)
bioperl 1.7.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 35,788 kB
  • sloc: perl: 94,019; xml: 14,811; makefile: 20
file content (49 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*-Perl-*- Test Harness script for Bioperl
# $Id: SearchIO_wise.t 11733 2007-10-26 18:22:10Z jason $

use strict;

BEGIN {
	use Bio::Root::Test;
	
	test_begin(-tests => 20);
	
    use_ok('Bio::SearchIO');
}

my $parser = Bio::SearchIO->new(-file => test_input_file('genewise.out'),
			    -format   => 'wise',
			    -wisetype => 'genewise');
my $result = $parser->next_result;
my $hit = $result->next_hit;
is($result->query_name, 'SINFRUP00000067802');
is($hit->name, 'Scaffold_2042.1');

is($hit->score, 2054.68);
my $hsp = $hit->next_hsp;

is($hsp->query->start,22265);
is($hsp->query->end,22396);
is($hsp->query->strand,1);
is($hsp->query->score, 2054.68);

is($hsp->hit->start,1);
is($hsp->hit->end,44);
is($hsp->hit->strand,0);
is($hsp->hit->score, 2054.68);

$hsp = $hit->next_hsp;

is($hsp->query->start,24224);
is($hsp->query->end,24328);

is($hsp->hit->start,45);
is($hsp->hit->end,79);

$hsp = $hit->next_hsp;

is($hsp->query->start,24471);
is($hsp->query->end,24513);

is($hsp->hit->start,80);
is($hsp->hit->end,93);