rule NAME: input: "table.txt" output: "plots/myplot.pdf" container: "docker://joseespinosa/docker-r-ggplot2" script: "scripts/plot-stuff.R"
snakemake --use-singularity
参考: https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#running-jobs-in-containers