Relative Content

Tag Archive for cluster-computingsnakemakesingularity-container

Is there a way to run snakemake within a singularity container with computing cluster submission for individual rules?

Is there a way to get the rules submitted to the cluster to inherit the parent command singularity container?
I’m running the base snakemake within a container for portability with most rules using other conda envs. So I can create the base conda env with snakemake and all the rule conda envs within the container. This works fine for running everything locally, all the rule conda envs were created within the container, so can be found. But when using cluster submission, the shell script is executed independent from the parent container, so fails. Is there a way to pass the parent singularity container to the submitted jobs?