2
## Bioperl Test Harness Script for various modules
3
## $Id: Sigcleave.t,v 1.10 2002/10/02 14:16:50 heikki Exp $
5
# Before `make install' is performed this script should be runnable with
6
# `make test'. After `make install' it should work as `perl test.t'
10
# to handle systems with no installed Test module
11
# we include the t dir (where a copy of Test.pm is located)
13
eval { require Test; };
21
use Bio::Tools::Sigcleave;
23
#load n-terminus of MGR5_HUMAN as test seq
24
my $protein = "MVLLLILSVLLLKEDVRGSAQSSERRVVAHMPGDIIIGALFSVHHQPTVDKVHERKCGAVREQYGI";
26
ok my $seq= Bio::PrimarySeq->new(-seq => $protein);
28
ok my $sig = new Bio::Tools::Sigcleave;
30
ok my $sout = $sig->seq;
31
ok $sout->seq eq $protein;
32
ok $sig->threshold, 3.5;
33
ok $sig->threshold(5), 5;
34
ok $sig->matrix, 'eucaryotic';
35
ok $sig->matrix('procaryotic'), 'procaryotic';
36
ok $sig->matrix('eucaryotic'), 'eucaryotic';
38
ok $sig->pretty_print =~ /Maximum score 7/;
39
ok my %results = $sig->signals;
41
ok $results{9}, 5.2, "unable to get raw sigcleave results";
44
$sig = new Bio::Tools::Sigcleave(-seq=>$protein,
46
ok %results = $sig->signals;
47
ok $results{9}, 5.2, "unable to get raw sigcleave results";
48
ok $sig->result_count, 5;