Snakemake Global Environment Container
0
0
Entering edit mode
16 days ago
meetmet ▴ 10

Hi everyone,

I’m currently working with Singularity containers for a bioinformatics project and using Snakemake to manage workflows. My goal is to make sure that my Conda environment is created within the Singularity container (which includes Miniconda3), but I’m running into an issue where it seems like the Conda environment is still being created on my local machine instead.

Here are the logs I’m seeing:

Activating singularity image /data/SaMD/.snakemake/singularity/d9...simg
Activating conda environment: .snakemake/conda/49a724..   

Docker Image:         "docker://continuumio/miniconda3:25.1.1-2"

How can I check that the conda env is created within the container?

Thanks for your futur help.

Ps: I declare the global env. container in the Snakefile as:

container: "docker://continuumio/miniconda3:25.1.1-2"
Snakemake Conda Singularity • 322 views
ADD COMMENT
0
Entering edit mode

How are you running snakemake?

ADD REPLY
0
Entering edit mode

Hello,

I run snakemake from the main directory of the workflow:

snakemake --profile workflow/profile --configfile .test/config/config.yaml

The profile file content:

latency-wait: 30
scheduler: greedy
use-conda: true
conda-cleanup-pkgs: cache
use-singularity: true
printshellcmds: true
show-failed-logs: true
restart-times: 1  
jobs: 16
cores: 16
local-cores: 1
max-jobs-per-second: 5
max-status-checks-per-second: 10
rerun-incomplete: true
rerun-triggers: mtime
default-resources:
  - mem_mb=4000 
ADD REPLY
0
Entering edit mode

You can try to add software-deployment-method: conda singularity to you profile, this should work accordin to https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#ad-hoc-combination-of-conda-package-management-with-containers

ADD REPLY
1
Entering edit mode

Many thanks!

I completely missed this option.

Cheers.

ADD REPLY

Login before adding your answer.

Traffic: 3496 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6