MUTATION_DEPTH = int(query) elif opt == "-n": NSIZE = int(query) elif opt == "-l": LOOP_SIZE = int(query) elif opt =="-d": DEBUG = True elif opt == "-t": if(DEBUG): print 'Setting threshold to {0}'.format(query) nAVG = float(query) elif opt == "-u": location = query elif opt == "-a": EMAIL = True ADDRESS=query elif opt == "-c": CSV = True else: print "ERROR: incorrect usage" usage() sys.exit if EMAIL: email = smail.mail(ADDRESS, SEQUENCE,location) if(re.match('\w+',SEQUENCE)): sampling = BootStrap.bootstrap(seq) initial() else: print "ERROR: Buggy or Null Sequence" sys.exit
ALL = True elif opt in ("-h", "--help"): usage() elif opt == "-b": TOP_BREAK = query elif opt == "-j": JSON = True elif opt == "-a": EMAIL = True ADDRESS = query elif opt == "-u": location = query elif opt == "-c": CSV = True elif opt == "-t": BOOTSTRAP = True else: print "ERROR: incorrect usage" print usage() sys.exit if EMAIL: email = smail.mail(ADDRESS, SEQUENCE, location) if BOOTSTRAP: sampling = BootStrap.bootstrap(seq,MUTATION_DEPTH) if(re.match('\w',seq)): start_sampling(seq) else: print "ERROR: Buggy Sequence" sys.exit