Skip to content

Instantly share code, notes, and snippets.

@SpheMakh
Last active June 3, 2019 09:22
Show Gist options
  • Save SpheMakh/bd13590f0ed8cdcfc9ad046a0a1a5052 to your computer and use it in GitHub Desktop.
Save SpheMakh/bd13590f0ed8cdcfc9ad046a0a1a5052 to your computer and use it in GitHub Desktop.
Stimela with singularity

You have to use singularity now. Do this:

create a folder in your home called "STIMELA_IMAGES"

mkdir $HOME/STIMELA_IMAGES

add an environment variable called "STIMELA_IMAGES_PATH" (add it at the bottom of your $HOME/.bashrc file

export STIMELA_IMAGES_PATH=$HOME/STIMELA_IMAGES
source $HOME/.bashrc

pull singularity containers

cd $STIMELA_IMAGES && stimela pull --singularity

If you are using meerkathi, then add the -sid $STIMELA_IMAGES option to your run command.

If you are running a stimela script you will need to specify the singularity_image_dir argument when you instantiate your recipe,

recipe = stimela.Recipe(..., singularity_image_dir=os.environ["STIMELA_IMAGES_PATH"])

then proceed as normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment