Merge pull request #5191 from solgenomics/topic/quality_control
[sgn.git] / lib / SGN / Controller / SolgwasTool.pm
blobf3fde1f9f7838490a18d83f9da85cf8749882d6e
1 package SGN::Controller::SolgwasTool;
3 use Moose;
5 use POSIX;
6 use Data::Dumper;
7 use Storable qw | nstore retrieve |;
8 use List::Util qw/sum/;
9 use Bio::SeqIO;
10 use CXGN::Tools::Text qw/ sanitize_string /;
11 #use SGN::Schema;
12 use URI::FromHash 'uri';
13 use CXGN::Blast;
14 use CXGN::Blast::SeqQuery;
17 BEGIN { extends 'Catalyst::Controller'; }
19 sub AUTO {
20 my $self = shift;
21 my $c = shift;
22 SGN::Schema::BlastDb->dbpath($c->config->{blast_db_path});
25 sub index :Path('/tools/solgwas/') :Args(0) {
26 my $self = shift;
27 my $c = shift;
28 if (! $c->user) {
29 $c->res->redirect(uri( path => '/user/login', query => { goto_url => $c->req->uri->path_query } ) );
30 return;
32 $c->stash->{template} = '/tools/solgwas/index.mas';