You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A while ago, Snakemake introduced the tmpdir resource. We currently override tmpdir in the job script. This is bad.
Describe the solution you'd like
Implement a get_tmpdir() in the BaseStep class and implement the resource tmpdir in ResourceUsage. The behaviour should be as follows:
First, prefer to use ResourceUsage.tmpdir if set.
Then, fall back to:
Configuration global_settings/tmpdir and interpret environment variables such as $HOSTNAME and $HOME. Introduce date +%Y%m%d as $TODAY.
If not set, return environment variable $TMPDIR
If not set, return tempdir.gettmpdir() as Snakemake does.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
You can use the following config snippet (top level key "global_config"):
global_config:
tmpdir: /data/wekafs-1/groups/cubi/scratch/holtgrem_c/$HOSTNAME/$TODAY
You can use the following config snippet (top level key "global_config"):
global_config:
tmpdir: /data/wekafs-1/groups/cubi/scratch/holtgrem_c/$HOSTNAME/$TODAY
Is your feature request related to a problem? Please describe.
A while ago, Snakemake introduced the tmpdir resource. We currently override tmpdir in the job script. This is bad.
Describe the solution you'd like
Implement a
get_tmpdir()
in theBaseStep
class and implement the resourcetmpdir
inResourceUsage
. The behaviour should be as follows:First, prefer to use
ResourceUsage.tmpdir
if set.Then, fall back to:
global_settings/tmpdir
and interpret environment variables such as$HOSTNAME
and$HOME
. Introducedate +%Y%m%d
as$TODAY
.$TMPDIR
tempdir.gettmpdir()
as Snakemake does.Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: