1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 0,
11 -requires_modules => [qw(IO::String
13 -requires_networking => 1);
16 use_ok("Bio::Tools::Analysis::Protein::GOR4");
19 my $seq = Bio::Seq->new(-seq => 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS',
20 -display_id => 'test2');
21 ok my $tool = Bio::Tools::Analysis::Protein::GOR4->new(-seq=>$seq->primary_seq);
25 skip "Skipping tests since we got terminated by a server error", 9 if $tool->status eq 'TERMINATED_BY_ERROR';
26 ok my $raw = $tool->result('');
27 ok my $parsed = $tool->result('parsed');
29 is $parsed->[0]{'coil'}, '56';
30 my @res = sort {$a->start <=> $b->start} $tool->result('Bio::SeqFeatureI');
31 if (scalar @res > 0) {
35 skip 'No results - could not connect to GOR4 server?', 6;
39 ok my $meta = $tool->result('meta');
41 test_skip(-tests => 2, -requires_module => 'Bio::Seq::Meta::Array');
42 is $meta->named_submeta_text('GOR4_coil',1,2), '56 195';
43 is $meta->seq, 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS';