def main(argv=None): """script main. parses command line options in sys.argv, unless *argv* is given. """ if argv is None: argv = sys.argv # setup command line parser parser = E.OptionParser(version="%prog version: $Id$", usage=globals()["__doc__"]) parser.add_option("-t", "--test", dest="test", type="string", help="supply help") parser.add_option("--alpha", dest="alpha", type="string", help="false positive rate for differentially" " expressed genes") parser.add_option("--file-list", dest="infiles", type="string", help="comma separated list of input files") parser.add_option("--output-directory", dest="out_dir", type="string", help="output directory for png images") # add common options (-h/--help, ...) and parse command line (options, args) = E.Start(parser, argv=argv) infiles = options.infiles.split(",") TS.genSigGenes(file_list=infiles, alpha=float(options.alpha), out_dir=options.out_dir) # Write footer and output benchmark information. E.Stop()