def install_recipe(base_dir, recipe_file):
    assert env.hosts == ["localhost"], "GGD recipes only work for local runs"
    if not os.path.exists(base_dir):
        os.makedirs(base_dir)
    recipe = _read_recipe(recipe_file)
    if not version_uptodate(base_dir, recipe):
        if _has_required_programs(recipe["recipe"]["full"].get("required", [])):
            with tx_tmpdir(base_dir) as tmpdir:
                with chdir(tmpdir):
                    print("Running GGD recipe: %s" % recipe["attributes"]["name"])
                    _run_recipe(tmpdir, recipe["recipe"]["full"]["recipe_cmds"],
                                recipe["recipe"]["full"]["recipe_type"])
                _move_files(tmpdir, base_dir, recipe["recipe"]["full"]["recipe_outfiles"])
            add_version(base_dir, recipe)
Install data in a biodata directory given instructions from GGD YAML recipe.
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/biodata/ggd.py/install_recipe