1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 16,
11 -requires_modules => [qw(IO::String LWP::UserAgent)]);
13 use_ok('Bio::PrimarySeq');
14 use_ok('Bio::Tools::Analysis::Protein::Sopma');
17 my $verbose = test_debug();
19 ok my $tool = Bio::WebAgent->new(-verbose =>$verbose);
21 my $seq = Bio::PrimarySeq->new(
22 -seq => 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS',
23 -display_id => 'test2');
24 ok $tool = Bio::Tools::Analysis::Protein::Sopma->new( -seq=>$seq,
25 #-verbose => $verbose,
29 test_skip(-tests => 12, -requires_networking => 1);
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';