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