This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use Pod::Usage; | |
use Getopt::Long; | |
GetOptions( 'h|help' => sub { pod2usage(1); } ); | |
pod2usage("no module name given") if !$ARGV[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST; | |
use strict; | |
use warnings; | |
use base 'Mojolicious'; | |
use Config::Simple; | |
use Carp; | |
use File::Spec::Functions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST; | |
use strict; | |
use warnings; | |
use base 'Mojolicious'; | |
use Config::Simple; | |
use Carp; | |
use File::Spec::Functions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST::Controller::Page; | |
use strict; | |
use warnings; | |
use base qw/Mojolicious::Controller/; | |
use dicty::UI::Tabview::Page::Gene; | |
use dicty::Factory::Tabview::Tab; | |
use dicty::Factory::Tabview::Section; | |
sub index { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST::Controller::Tab; | |
use strict; | |
use warnings; | |
use base qw/Mojolicious::Controller/; | |
use dicty::UI::Tabview::Page::Gene; | |
use dicty::Factory::Tabview::Tab; | |
use dicty::Factory::Tabview::Section; | |
sub section { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST::Renderer::JSON; | |
use warnings; | |
use strict; | |
use Carp; | |
use version; our $VERSION = qv('1.0.0'); | |
# Other modules: | |
use base 'Mojo::Base'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST::Renderer::TT; | |
use warnings; | |
use strict; | |
use Carp qw/confess cluck carp/; | |
use version; our $VERSION = qv('1.0.0'); | |
# Other modules: | |
use base 'Mojo::Base'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DictyREST::Helper; | |
use version; our $VERSION = qv('1.0.0'); | |
# Other modules: | |
use base qw/Mojo::Base/; | |
use dicty::Gene; | |
# Module implementation | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use Pod::Usage; | |
use Getopt::Long; | |
use File::Spec::Functions; | |
use FindBin qw/$Bin/; | |
use Bio::Chado::Schema; | |
use DBIx::Class::Fixtures; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
sets: [ | |
{ | |
class: 'Cv::Cv', | |
quantity: 'all', | |
fetch: [ { | |
rel: 'cvterms', | |
quantity: 'all', | |
fetch: [ { | |
rel: 'dbxref', |
OlderNewer