1 # Bio::Tools::Seg test script
6 BEGIN { plan tests => 15 }
11 ok my $infile = File::Spec->catfile(qw(t data seg.out));
12 ok my $parser = Bio::Tools::Seg->new(-file=>$infile);
15 while ( my $feat = $parser->next_result ) {
21 #>LBL_0012(32-46) complexity=2.47 (12/2.20/2.50)
24 ok $feat[0]->seq_id, 'LBL_0012';
25 ok $feat[0]->start, 32;
27 ok $feat[0]->score, 2.47;
29 #>LBL_0012(66-80) complexity=2.31 (12/2.20/2.50)
32 ok $feat[1]->seq_id, 'LBL_0012';
33 ok $feat[1]->start, 66;
35 ok $feat[1]->score, 2.31;
37 #>LBL_0012(123-138) complexity=2.31 (12/2.20/2.50)
40 ok $feat[2]->seq_id, 'LBL_0012';
41 ok $feat[2]->start, 123;
42 ok $feat[2]->end, 138;
43 ok $feat[2]->score, 2.31;