Supply TEMPLATE and SUFFIX for temporary query sequence files.
[bioperl-run.git] / t / Coil.t
blob8b271aecc828e05f43041ef5ce854e4cf0378d3c
1 #!/usr/local/bin/perl
2 #-*-Perl-*-
3 # ## Bioperl Test Harness Script for Modules
4 # #
5 use strict;
6 BEGIN {
7 use Bio::Root::Test;
8 test_begin(-tests => 6);
10 use_ok('Bio::Tools::Run::Coil');
11 use_ok('Bio::SeqIO');
14 SKIP: {
15 my $factory = Bio::Tools::Run::Coil->new();
16 test_skip(-requires_executable => $factory,
17 -requires_env => 'COILSDIR',
18 -tests => 4);
19 ok $factory->isa('Bio::Tools::Run::Coil');
21 my $prot_file= test_input_file("coil_protein_input");
23 my $seq1 = Bio::Seq->new();
24 my $seqstream = Bio::SeqIO->new(-file => $prot_file, -fmt => 'Fasta');
25 $seq1 = $seqstream->next_seq();
27 my $coil_present = $factory->executable();
28 unless ($coil_present) {
29 skip("coil program not found", 3);
32 $factory->quiet(1);
33 my @feat = $factory->predict_protein_features($seq1);
35 ok $feat[0]->isa('Bio::SeqFeatureI');
36 ok ($feat[0]->start,71);
37 ok ($feat[0]->end,91);