コード例 #1
0
ファイル: readCounts.py プロジェクト: grahnavard/NGS

def cleanup():
    for d in toremove:
        shutil.rmtree(d, ignore_errors=True)


atexit.register(cleanup)

if not GUI() and len(sys.argv) == 2 and sys.argv[1] == '--GUI':
    from optparse_gui.needswx import *
    sys.exit(1)

if GUI() and len(sys.argv) == 1:
    from optparse_gui import OptionParserGUI
    parser = OptionParserGUI(version=VERSION)
    error_kwargs = {'exit': False}
    sys.excepthook = excepthook
else:
    parser = OptionParser(version=VERSION)
    error_kwargs = {}

advanced = OptionGroup(parser, "Advanced")
parser.add_option("-s",
                  "--snvs",
                  type="files",
                  dest="snvs",
                  default=None,
                  help="Single-Nucleotide-Variant files. Required.",
                  name="SNV Files",
                  notNone=True,