Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial conda-env requirements for data_buddy #68

Open
russHyde opened this issue Apr 10, 2019 · 4 comments
Open

initial conda-env requirements for data_buddy #68

russHyde opened this issue Apr 10, 2019 · 4 comments

Comments

@russHyde
Copy link
Owner

russHyde commented Apr 10, 2019

Need a requirements.txt / environment.yml for creating a minimal conda env that will allow the sidekick setup program, setup-scripts and Snakefiles

@russHyde
Copy link
Owner Author

russHyde commented Apr 10, 2019

Required as of 2019-04-10:

  • pip
  • snakemake [suggest >=5.3]
  • Rscript (if including an R environment) [>=3.4.1]
  • sh

@russHyde
Copy link
Owner Author

Suggest:

channels:
  - bioconda
  - conda-forge
  - defaults
dependencies:
  - snakemake >=5.3
  { % how do you specify conditional dependencies : cookiecutter.is_r_required %}
  - r-base >= 3.4.1
  { % how do you terminate a conditional dependency? % }
  - pip
  - sh

@russHyde russHyde changed the title initial requirements for data_buddy initial conda-env requirements for data_buddy Apr 10, 2019
@russHyde
Copy link
Owner Author

When an R package is to be produced (either a local, or installation of a cloned / copied one), we also require:

  • r-desc
  • r-devtools

@russHyde
Copy link
Owner Author

russHyde commented May 9, 2019

Suggest just printing a message & exiting.

If conda isn't even available

# Environment manager `conda` is a prerequisite for setting-up  and running this project
# - please install `conda` using `miniconda` or `anaconda`

If the computer has an environment of the correct name, but it hasn't been activated

# Environment `env_name` detected
# Environment `env_name` has not been activated
# - please rerun this project after activating `env_name`
conda activate <env_name>

If the computer contains an environment of the correct name, but it doesn't contain the requirements:

# Environment `env_name` detected
# Environment `env_name` does not contain all requirements for setting-up this project
# - please install using:
conda install --name <env_name> -c conda-forge -c bioconda snakemake pip sh 
conda install --name <env_name> -c conda-forge -c bioconda r-base r-desc r-devtools

If the computer does not contain an environment of the correct name:

# Environment `env_name` not detected
# Please install using:
conda create --name <env_name>
conda install --name <env_name> -c conda-forge -c bioconda snakemake pip sh
conda install --name <env_name> -c conda-forge -c bioconda r-base r-desc r-devtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant