def add_install_defaults(args):
    default_args = _get_install_defaults(args)
    for attr in ["genomes", "aligners"]:
        for x in default_args.get(attr, []):
            new_val = getattr(args, attr)
            if x not in getattr(args, attr):
                new_val.append(x)
            setattr(args, attr, new_val)
    args = _add_docker_defaults(args, default_args)
    return args
Add previously saved installation defaults to command line arguments.
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/docker/install.py/add_install_defaults