gogetdata / ggd-cli

The command-line interface to GGD
MIT License
42 stars 3 forks source link

Can "ggd install --file" be integrated into "conda env create -f environment.yml"? #47

Open zhangzhen opened 3 years ago

zhangzhen commented 3 years ago

I want to use ggd in a nextflow pipeline. At present nextflow has no support for ggd, but does have support for conda. If "ggd install --file" is integrated into "conda env create -f environment.yml", it will be very convenient to create a reproducible pipeline with data packages managed just as software packages.

mikecormier commented 3 years ago

@zhangzhen, this is not currently a function available in conda. GGD would need to be added as a new installer type to conda_env.

Currently, you would need to set up a process within your workflow to install ggd dependencies. You can install them into the environment created with conda env create -f environment.yml using the --prefix argument with ggd. That is ggd install --prefix <environment name> --file ggd_deps.txt.

You are welcome to begin a PR in conda's github repo to add the GGD installer. It will need to be added here: https://github.com/conda/conda/tree/feb115addfe6751547740a66a17448e6590ced02/conda_env/installers.