From 307b1af60faedd6ac57f3dd8e4ece8f602c92015 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 18 Apr 2005 21:03:45 +0000 Subject: [PATCH] Scott Markel's additions + some tweaking for hmmalign svn path=/bioperl-run/trunk/; revision=13599 --- t/Hmmer.t | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/t/Hmmer.t b/t/Hmmer.t index e658a89..5b36f9d 100644 --- a/t/Hmmer.t +++ b/t/Hmmer.t @@ -10,7 +10,7 @@ BEGIN { } use Test; use vars qw($NTESTS); - $NTESTS = 17; + $NTESTS = 20; plan tests => $NTESTS; } @@ -115,6 +115,24 @@ ok -e $hmmout; +#test HMMALIGN +$hmmout= Bio::Root::IO->catfile("t","data","hmmer.hmm"); +@params = ('HMM'=>$hmmout,'program'=>'hmmalign'); +$factory = Bio::Tools::Run::Hmmer->new(@params); +ok $factory->isa('Bio::Tools::Run::Hmmer'); +my $seqfile= Bio::Root::IO->catfile("t","data","cysprot1a.fa"); +my $seqio = Bio::SeqIO->new(-file => $seqfile, + -format=> 'fasta'); +my @seqs; +while( my $seq = $seqio->next_seq ) { + push @seqs, $seq; +} +$aio = $factory->run(@seqs); +$aln = $aio->next_aln; +ok($aln); +#$aio = Bio::AlignIO->new(-format => 'clustalw'); +#$aio->write_aln($aln); +ok($aln->each_seq, 3); 1; -- 2.11.4.GIT