https://github.com/genome/genome
Raw File
Tip revision: 558bd9654da98585ddc8a508e8aee8c6d4260c5b authored by Thomas B. Mooney on 10 November 2016, 16:52:41 UTC
Merge pull request #1610 from tmooney/make_it_possible_to_disable_fs_caching
Tip revision: 558bd96
gmt
#!/usr/bin/env genome-perl

use strict;
use warnings;

BEGIN {
    # This allows the gmt command to self-serve as a tab completer for the bash shell.
    # When "gmt" is run by bash as a tab completer, the code below will service the
    # tab-completion request and then exit before doing any real work.
    # The code is in an eval to prevent problems on systems which do not have Getopt::Complete
    # installed.  The code is in a BEGIN block to ensure it still runs before anything else.
    if ($ENV{COMP_CWORD}) {
        eval "use Getopt::Complete::Cache class => 'Genome::Model::Tools', above => 1;";
        exit if ($@);
    }
    if ($ENV{COMP_LINE}) {
        #for transitioning from older version of completion
        #just return no result
        exit;
    }
};

use above 'Genome';
use Genome::Model::Tools;
Genome::Model::Tools->execute_with_shell_params_and_exit();

=pod

=head1 NAME

gmt - bioinformatics tools for genomics

=head1 SYNOPSIS

  # get a top-level list
  gmt 

  # see the MuSiC tools
  gmt music

  # run the MuSiC smg-test tool
  gmt music smg-test


=head1 DESCRIPTION

The B<gmt> command gives command-line access to any Genome Model Tools modules
which are installed on the current system.

Each installed tool group is a sub-command.

Just type B<gmt> and press <ENTER> for a the top-level list and drill down.

=head1 DEVELOPMENT

Installing any new Perl module with a name starting with Genome::Model::Tools will add to the tree.

=head1 AUTHORS

This software is developed by the analysis and engineering teams at 
The Genome Center at Washington Univiersity in St. Louis, with funding from 
the National Human Genome Research Institute.

=head1 LICENSE

This software is copyright Washington University in St. Louis, 2007-2010.  

It is released under the Lesser GNU Public License (LGPL) version 3.  See the 
associated LICENSE file in this distribution.

=head1 BUGS

For defects with any software in the genome namespace,
contact genome-dev ~at~ genome.wustl.edu.

=cut

back to top