1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 15,
11 -requires_modules => [qw(IO::String
14 -requires_networking => 1);
16 use_ok('Bio::Tools::Analysis::Protein::ELM');
18 use_ok('Bio::WebAgent');
21 my $verbose = test_debug();
23 ok my $tool = Bio::WebAgent->new(-verbose =>$verbose);
25 my $seqio=Bio::SeqIO->new( -verbose => $verbose,
27 -file => test_input_file('swiss.dat'));
29 my $seq = $seqio->next_seq();
30 ok $tool = Bio::Tools::Analysis::Protein::ELM->new(
31 -seq=>$seq->primary_seq);
32 ok $tool->compartment(['golgi', 'er']);
33 ok my $cmp = $tool->compartment();
34 is $cmp->[1], 'GO:0005783';
35 ok $tool->species(9606);
36 is $tool->species, 9606;
39 exit if $tool->status eq 'TERMINATED_BY_ERROR';
40 ok my $raw = $tool->result('');
41 print $raw if $verbose;
42 ok my $parsed = $tool->result('parsed');
43 is $parsed->{'CLV_NDR_NDR_1'}{'locus'}[0], '54-56';
44 ok my @res = $tool->result('Bio::SeqFeatureI');