Esempio n. 1
0
def main(opt):
    logging.getLogger().setLevel(logging.DEBUG if opt.v else logging.INFO)

    base_dict = dict(t_path=opt.t_path,
                     lazy_wl=opt.lazy_wl,
                     sada=False,
                     space_usage=False,
                     time_usage=False,
                     answer=True,
                     load_cst=opt.load_cst,
                     runs_progress=opt.runs_progress,
                     ms_progress=opt.ms_progress)
    base_dir = os.path.dirname(opt.t_path)
    out_paths = []
    for i, s_path in enumerate(
            glob.glob(base_dir + "/" + opt.species + "*.juststring")):
        out_path = "%s__%s" % (opt.t_path.replace(".juststring", ""),
                               os.path.basename(
                                   s_path.replace(".juststring", "")))
        command = MsInterface.ms_command_from_dict(
            dict(s_path=s_path, out_path=out_path, **base_dict))
        print command
Esempio n. 2
0
def main(opt):
    logging.getLogger().setLevel(logging.DEBUG if opt.v else logging.INFO)
    LG.debug("running on S=%s, T=%s", opt.s_path, opt.t_path)
    command = MsInterface.ms_command_from_dict(vars(opt))
    LG.debug("running: " + str(command))
    subprocess.check_call(command, shell=True)