1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 0,
10 -requires_modules => [qw(IO::String
12 -requires_networking => 1);
14 use_ok('Bio::PrimarySeq');
15 use_ok('Bio::Tools::Analysis::Protein::Sopma');
18 my $verbose = test_debug();
20 ok my $tool = Bio::WebAgent->new(-verbose =>$verbose);
22 my $seq = Bio::PrimarySeq->new(
23 -seq => 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS',
24 -display_id => 'test2'
26 ok $tool = Bio::Tools::Analysis::Protein::Sopma->new( -seq=>$seq,
27 #-verbose => $verbose,
32 skip "Tool was terminated by some error: problem connecting to server?", 11 if $tool->status eq 'TERMINATED_BY_ERROR';
34 ok my $raw = $tool->result('');
35 ok my $parsed = $tool->result('parsed');
36 is ($parsed->[0]{'helix'}, '102');
37 ok my @res = $tool->result('Bio::SeqFeatureI');
38 ok my $meta = $tool->result('meta', "ww15");
40 ok $tool->window_width(21);
43 ok my $meta2 = $tool->result('meta', "ww21");
46 test_skip(-tests => 2, -requires_module => 'Bio::Seq::Meta::Array');
47 is $meta->named_submeta_text('Sopma_helix|ww15',1,2), '102 195';
48 is $meta->seq, 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS';