From 2da33a66a3a5e595f2e960c03ccbe484c046f48d Mon Sep 17 00:00:00 2001 From: Production User Date: Thu, 5 Jun 2014 10:00:30 -0400 Subject: [PATCH] fix BLAST backend. --- lib/SGN/Controller/AJAX/Blast.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/SGN/Controller/AJAX/Blast.pm b/lib/SGN/Controller/AJAX/Blast.pm index d400b4a60..2a8cee464 100644 --- a/lib/SGN/Controller/AJAX/Blast.pm +++ b/lib/SGN/Controller/AJAX/Blast.pm @@ -48,8 +48,8 @@ sub run : Path('/tools/blast/run') Args(0) { print STDERR "SEQUENCE now : ".$params->{sequence}."\n"; - my $seq_count = $params->{sequence} =~ tr/\>/\>/; - + my $seq_count = $params->{sequence} =~ tr/\>/\>/; + print STDERR "SEQ COUNT = $seq_count\n"; my ($seq_fh, $seqfile) = tempfile( "blast_XXXXXX", DIR=> $c->get_conf('cluster_shared_tempdir'), @@ -95,7 +95,6 @@ sub run : Path('/tools/blast/run') Args(0) { try { while ( my $s = $i->next_seq ) { - $s->length or $c->throw( message => 'Sequence '.encode_entities('"'.$s->id.'"').' is empty, this is not allowed by BLAST.', is_error => 0, -- 2.11.4.GIT