def _save_install_defaults(args):
    install_config = _get_config_file(args)
    if install_config is None:
        return
    if os.path.exists(install_config) and os.path.getsize(install_config) > 0:
        with open(install_config) as in_handle:
            cur_config = yaml.load(in_handle)
    else:
        cur_config = {}
    for attr in ["genomes", "aligners"]:
        if not cur_config.get(attr):
            cur_config[attr] = []
        for x in getattr(args, attr):
            if x not in cur_config[attr]:
                cur_config[attr].append(str(x))
    if args.image != DEFAULT_IMAGE and args.image:
        cur_config["image"] = args.image
    with open(install_config, "w") as out_handle:
        yaml.dump(cur_config, out_handle, default_flow_style=False, allow_unicode=False)
Save arguments passed to installation to be used on subsequent upgrades.
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/docker/install.py/_save_install_defaults