1 package SGN
::Controller
::Heritability
;
7 use Storable qw
| nstore retrieve
|;
8 use List
::Util qw
/sum/;
10 use CXGN
::Tools
::Text qw
/ sanitize_string /;
12 use URI
::FromHash
'uri';
14 use CXGN
::Blast
::SeqQuery
;
17 BEGIN { extends
'Catalyst::Controller'; }
22 SGN
::Schema
::BlastDb
->dbpath($c->config->{blast_db_path
});
26 sub index :Path
('/tools/heritability/') :Args
(0) {
30 $c->res->redirect(uri
( path
=> '/user/login', query
=> { goto_url
=> $c->req->uri->path_query } ) );
33 $c->stash->{template
} = '/tools/heritability/index.mas';
39 # sub index :Path('/tools/heritability/') Args(0) {
40 # my ($self, $c) = @_;
41 # $c->res->redirect(uri( path => '/tools/heritability', query => { goto_url => $c->req->uri->path_query } ) );
42 # $c->stash->{template} = template('/tools/heritability/index.mas');