From bb7d6dce2f5f9ad4ebc39a80eff9e4cf66b34a28 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 11 Feb 2019 09:11:36 +1100 Subject: snpeff: parameterise heap size and default to 31g --- tools/snpeff-annotate.nix | 2 ++ tools/snpeff-dbnsfp.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/snpeff-annotate.nix b/tools/snpeff-annotate.nix index dee99f1..317d303 100644 --- a/tools/snpeff-annotate.nix +++ b/tools/snpeff-annotate.nix @@ -1,5 +1,6 @@ {bionix ,db +,heapSize ? "31g" ,flags ? ""}: input: @@ -12,6 +13,7 @@ assert (matchFiletype "snpeff-annotate" { vcf = _: true; } input); stage { name = "snpeff-annotate"; buildInputs = with pkgs; [ snpeff ]; + JAVA_TOOL_OPTIONS = "-Xmx${heapSize}"; buildCommand = '' ln -s ${db} ${db.name} snpeff -nodownload -dataDir $TMPDIR ${db.name} ${input} > $out diff --git a/tools/snpeff-dbnsfp.nix b/tools/snpeff-dbnsfp.nix index 1d144cd..518c121 100644 --- a/tools/snpeff-dbnsfp.nix +++ b/tools/snpeff-dbnsfp.nix @@ -1,5 +1,6 @@ {bionix ,dbnsfp +,heapSize ? "31g" ,flags ? ""}: input: @@ -11,6 +12,7 @@ assert (matchFiletype "snpeff-dbnsfp" { vcf = _: true; } input); stage { name = "snpeff-dbnsfp"; + JAVA_TOOL_OPTIONS = "-Xmx${heapSize}"; buildCommand = '' ln -s ${dbnsfp.db} dbNSFP.txt.gz ln -s ${dbnsfp.index} dbNSFP.txt.gz.tbi -- cgit v1.2.3