1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 18);
12 use_ok('Bio::PrimarySeq');
13 use_ok('Bio::Tools::Sigcleave');
16 #load n-terminus of MGR5_HUMAN as test seq
17 my $protein = "MVLLLILSVLLLKEDVRGSAQSSERRVVAHMPGDIIIGALFSVHHQPTVDKVHERKCGAVREQYGI";
19 ok my $seq= Bio::PrimarySeq->new(-seq => $protein);
21 ok my $sig = Bio::Tools::Sigcleave->new();
23 ok my $sout = $sig->seq;
24 is $sout->seq, $protein;
25 is $sig->threshold, 3.5;
26 is $sig->threshold(5), 5;
27 is $sig->matrix, 'eucaryotic';
28 is $sig->matrix('procaryotic'), 'procaryotic';
29 is $sig->matrix('eucaryotic'), 'eucaryotic';
31 like $sig->pretty_print, qr/Maximum score 7/;
32 ok my %results = $sig->signals;
34 is $results{9}, 5.2, "unable to get raw sigcleave results";
37 $sig = Bio::Tools::Sigcleave->new(-seq=>$protein,
39 ok %results = $sig->signals;
40 is $results{9}, 5.2, "unable to get raw sigcleave results";
41 is $sig->result_count, 5;