summaryrefslogtreecommitdiff
path: root/guix-snakemake-environment
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-26 19:06:46 -0400
committerKyle Meyer <kyle@kyleam.com>2017-03-26 21:21:31 -0400
commitf2ea2ab6423f223b6dae3e1f8feab60da0745ec4 (patch)
treef4ca1b1e1ad59718d3ca149ab12d5f336287f722 /guix-snakemake-environment
parent7ffea30d691cd7a46b6969767b6840dabaaea428 (diff)
downloadsnakemake-mode-f2ea2ab6423f223b6dae3e1f8feab60da0745ec4.tar.gz
Add a terminal interface for running Snakemake
Snakemake commands are currently executed through compile. In general, this works fine, but it doesn't work well when Snakemake should be executed in a different environment than the one in which the current Emacs session was started. For example, Guix commands like 'guix environment ...' manipulate environmental variables to expose particular software. With the current setup, snakemake-program could be set to a wrapper script that creates the environment and then calls Snakemake: guix environment -l manifest.scm --ad-hoc snakemake --pure \ -- snakemake $@ But the disadvantage of this approach is that it adds the environmental setup time to _each_ Snakemake call. To work better with tools like Guix, let's add an alternative interface that allows commands to be executed in a terminal session. Instead of the above script, snakemake-shell-file-name can be set to a script with guix environment -l manifest.scm --ad-hoc snakemake --pure Now the environmental setup cost is limited to starting the terminal.
Diffstat (limited to 'guix-snakemake-environment')
0 files changed, 0 insertions, 0 deletions