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
Copy file name to clipboardExpand all lines: snakemake_wrapper_utils/java.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ def get_java_opts(snakemake):
4
4
"""Obtain java_opts from params, and handle resource definitions in resources."""
5
5
6
6
java_opts=snakemake.params.get("java_opts", "")
7
+
extra=snakemake.params.get("extra", "")
8
+
7
9
# Getting memory in megabytes, if java opts is not filled with -Xmx parameter
8
10
# By doing so, backward compatibility is preserved
9
11
if"mem_mb"insnakemake.resources.keys():
@@ -28,6 +30,8 @@ def get_java_opts(snakemake):
28
30
if"java_temp"insnakemake.output.keys():
29
31
if"-Djava.io.tmpdir"injava_opts:
30
32
sys.exit("You have specified output.java_temp and provided `-Djava.io.tmpdir` in params.java_opts. Please choose the one you intended and remove the other specification.")
33
+
if"-Djava.io.tmpdir"inextra:
34
+
sys.exit("You have specified output.java_temp and provided `-Djava.io.tmpdir` in params.extra. Please choose the one you intended and remove the other specification.")
0 commit comments