def run_compile(arg):
    filename, filtered, cleanup, store, stutter = arg
    csvfile = filename + ".csv"
    try:
        if filename.startswith("s3://"):
            if check_exists_s3(csvfile):
                logging.debug("{} exists. Skipped.".format(csvfile))
            else:
                write_csv_ev(filename, filtered, cleanup,
                             store=store, stutter=stutter)
                logging.debug("{} written and uploaded.".format(csvfile))
        else:
            if need_update(filename, csvfile):
                write_csv_ev(filename, filtered, cleanup,
                             store=None, stutter=stutter)
    except Exception, e:
        logging.debug("Thread failed! Error: {}".format(e))
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/run_compile/original