Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java (multiple tools) -Xmx parameter #204

Merged
merged 64 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
ab82604
[fix] (template): Missing code in wrappers' doc. Error #187
Sep 21, 2020
ab5c6c7
[dev] (Picard): Memory
Sep 21, 2020
9fb664a
[dev] (applybqsr): Automatic Xmx fill
Sep 22, 2020
a54fd76
[dev] (baserecal): Automatic Xmx fill
Sep 22, 2020
24b2a22
[dev] (baserecalspark): Automatic Xmx fill
Sep 22, 2020
93d8a52
[dev] (combinegvcf): Automatic Xmx fill
Sep 22, 2020
56a6c78
[dev] (genotypegvcfs): Automatic Xmx fill
Sep 22, 2020
3f00870
[dev] (haplotypecaller): Automatic Xmx fill
Sep 22, 2020
bf61cfa
[dev] (selectvariants): Automatic Xmx fill
Sep 22, 2020
855d57c
[dev] (splitncigarreads): Automatic Xmx fill
Sep 22, 2020
0869139
[dev] (variantfiltration): Automatic Xmx fill
Sep 22, 2020
2c369d3
[dev] (variantrecalibrator): Automatic Xmx fill
Sep 22, 2020
8dc5ed8
[dev] (snpsift_annotate): Automatix Xmx fill
Sep 22, 2020
6148de2
[dev] (snpsift_dbnsfp): Automatic Xmx fill
Sep 22, 2020
6eb309f
[dev] (snpsift): genesets, gwascat and varType: automatic Xmx fill
Sep 22, 2020
6c8d6ab
[dev] (trinity): Aotumatix Xmx fill
Sep 22, 2020
321a5da
[dev] (Mutect2): Java options added, with automatic Xmx fill
Sep 22, 2020
e6ee27b
[fix] (Picard): Test if -Xmx was not set before
Sep 25, 2020
b83d70e
Merge branch 'master' into picard_memory
tdayris Oct 13, 2020
2c08943
[dev] (SnpEff): Automatic Xmx fill
Oct 19, 2020
5defcbf
[dev] (SnpEff): Automatic Xmx fill in download wrapper
Oct 19, 2020
8e4a9f3
[dev] (Jannovar): Automatic Xmx fill
Oct 19, 2020
a9433c8
[dev] (Varscan): Automatic Xmx fill
Oct 19, 2020
bab609f
[dev] (trimmomatic): Automatic Xmx fill
Oct 19, 2020
7798938
Merge branch 'picard_memory' of https://github.com/tdayris/snakemake-…
Oct 19, 2020
43700aa
[dev] (gatk4): Update with comments from @dlaehnemann and java_tmp
Oct 20, 2020
56d581b
[dev] (jannovar): Update with comments from @dlaehnemann and java temp
Oct 20, 2020
a3cb408
[dev] (picard): AddOrReplaceGroups updated, missing test added.
Oct 20, 2020
438b97e
[dev] (picard): Update with comments from @dlaehnemann and java temp
Oct 20, 2020
f17c6f4
[dev] (collecttargetedpcametrics): Updated and missing test added
Oct 20, 2020
f176831
[dev] (snpeff): Update with comments from @dlaehnemann and java temp
Oct 20, 2020
b23777c
[dev] (snpsift): Update with comments from @dlaehnemann and java temp
Oct 20, 2020
6e6a69c
e[dev] (trimmomatic): Updatr with comments from @dlaehnemann, javatemp
Oct 20, 2020
2e27658
[dev] (trinity): Update with comments from @dlaehnemann
Oct 20, 2020
9fe9385
[dev] (varscan): Update with comments from @dlaehnemann and java temp
Oct 20, 2020
9e84b42
[fix] (black): Files now blacked
Oct 20, 2020
58d7a2c
[doc] (varscan): Snakefiles updated
Oct 20, 2020
9675801
[fix] (varscan): Test for varscan somatic had a wrong name
Oct 20, 2020
6264556
[doc] (trimmomatic): Snakefiles updates
Oct 20, 2020
915c01f
[fix] (Trinity): Missing whitespace
Oct 20, 2020
29480b0
[fix] (Trinity): Missing whitespace
Oct 20, 2020
7951702
[doc] (Snpsift): Snakefiles updated
Oct 20, 2020
f2fb34d
[doc] (Snpeff): Snakefiles updated
Oct 20, 2020
6e95a92
[fix] (snpeff-download): Useless extra parameters removed
Oct 20, 2020
3062c26
[doc] (picard): Snakefiles updated
Oct 20, 2020
a0d73fe
[doc] (GATK): Snakefiles updated
Oct 20, 2020
b5ea7ae
[dev] (GATK4): Update with snakemake-wrappers-utils
Nov 2, 2020
a0a32d5
[dev] (GATK3): Update with snakemake-wrappers-utils
Nov 2, 2020
9503d7f
[dev] (Jannovar): Update with snakemake-wrappers-utils
Nov 2, 2020
8d7539b
[dev] (Picard): Update with snakemake-wrappers-utils
Nov 2, 2020
4b85044
[dev] (SnpEff): Update with snakemake-wrappers-utils
Nov 2, 2020
3732615
[dev] (SnpSift): Update with snakemake-wrappers-utils
Nov 2, 2020
71db432
[dev] (Trimmomatic): Update with snakemake-wrappers-utils
Nov 2, 2020
e11bc71
[dev] (Varscan): Update with snakemake-wrappers-utils
Nov 2, 2020
3afc38a
[fix] (NameError): snakemake-wrapper-utils updated
Nov 12, 2020
f87c029
[doc] (Documentations): Links to todumentation added
Nov 12, 2020
4a08dc1
[fix] (Black): Formatting error fixed
Nov 12, 2020
6e643e5
[fix] (SyntaxError): trailing quote removed
Nov 12, 2020
172b278
fix] (SyntaxError): Starting quote removed
Nov 12, 2020
2bc4188
[fix] (KeyError): missing extra definition
Nov 12, 2020
791322e
add mem_gb spec explanation comment in bio/jannovar/test/Snakefile
dlaehnemann Nov 12, 2020
1eb2c9f
[dev] (gatk3): Snakefile resources specifications
Nov 12, 2020
17264d6
Merge branch 'picard_memory' of https://github.com/tdayris/snakemake-…
Nov 12, 2020
fbb9baf
[fix] (gatk3): Removing trailing comma
Nov 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bio/gatk/applybqsr/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- openjdk =8
- openjdk =8
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/applybqsr/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ rule gatk_applybqsr:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/applybqsr"
6 changes: 4 additions & 2 deletions bio/gatk/applybqsr/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True, append=True)
shell(
"gatk --java-options '{java_opts}' ApplyBQSR {extra} -R {snakemake.input.ref} -I {snakemake.input.bam} "
"gatk --java-options '{java_opts}' ApplyBQSR {extra} "
"-R {snakemake.input.ref} -I {snakemake.input.bam} "
"--bqsr-recal-file {snakemake.input.recal_table} "
"-O {snakemake.output.bam} {log}"
)
3 changes: 2 additions & 1 deletion bio/gatk/baserecalibrator/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- openjdk =8
- openjdk =8
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/baserecalibrator/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ rule gatk_baserecalibrator:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
tdayris marked this conversation as resolved.
Show resolved Hide resolved
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/baserecalibrator"
3 changes: 2 additions & 1 deletion bio/gatk/baserecalibrator/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
known = snakemake.input.get("known", "")
Expand Down
3 changes: 2 additions & 1 deletion bio/gatk/baserecalibratorspark/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- openjdk =8
- openjdk =8
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/baserecalibratorspark/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ rule gatk_baserecalibratorspark:
#spark_runner="", # optional, local by default
#spark_master="", # optional
#spark_extra="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
threads: 8
wrapper:
"master/bio/gatk/baserecalibratorspark"
3 changes: 2 additions & 1 deletion bio/gatk/baserecalibratorspark/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
spark_runner = snakemake.params.get("spark_runner", "LOCAL")
spark_master = snakemake.params.get(
"spark_master", "local[{}]".format(snakemake.threads)
)
spark_extra = snakemake.params.get("spark_extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
known = snakemake.input.get("known", "")
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/combinegvcfs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/combinegvcfs/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ rule genotype_gvcfs:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/combinegvcfs"
4 changes: 3 additions & 1 deletion bio/gatk/combinegvcfs/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts


extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

gvcfs = list(map("-V {}".format, snakemake.input.gvcfs))

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/genotypegvcfs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/genotypegvcfs/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ rule genotype_gvcfs:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/genotypegvcfs"
3 changes: 2 additions & 1 deletion bio/gatk/genotypegvcfs/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts


extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
shell(
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/haplotypecaller/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/haplotypecaller/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ rule haplotype_caller:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/haplotypecaller"
4 changes: 3 additions & 1 deletion bio/gatk/haplotypecaller/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

known = snakemake.input.get("known", "")
if known:
known = "--dbsnp " + known

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

bams = snakemake.input.bam
if isinstance(bams, str):
bams = [bams]
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/mutect/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/mutect/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ rule mutect2:
"Testing Mutect2 with {wildcards.sample}"
threads:
1
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
log:
"logs/mutect_{sample}.log"
wrapper:
Expand Down
4 changes: 3 additions & 1 deletion bio/gatk/mutect/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

from snakemake.shell import shell
from snakemake.utils import makedirs
from snakemake_wrapper_utils.java import get_java_opts

log = snakemake.log_fmt_shell(stdout=True, stderr=True)

extra = snakemake.params.get("extra", "")
java_opts = get_java_opts(snakemake)

shell(
"gatk Mutect2 " # Tool and its subprocess
"gatk --java-options '{java_opts}' Mutect2 " # Tool and its subprocess
"--input {snakemake.input.map} " # Path to input mapping file
"--output {snakemake.output.vcf} " # Path to output vcf file
"--reference {snakemake.input.fasta} " # Path to reference fasta file
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/selectvariants/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
8 changes: 7 additions & 1 deletion bio/gatk/selectvariants/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ rule gatk_select:
"logs/gatk/select/snvs.log"
params:
extra="--select-type-to-include SNP", # optional filter arguments, see GATK docs
java_opts="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/selectvariants"
3 changes: 2 additions & 1 deletion bio/gatk/selectvariants/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
shell(
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/splitncigarreads/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/splitncigarreads/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ rule splitncigarreads:
params:
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/splitncigarreads"
3 changes: 2 additions & 1 deletion bio/gatk/splitncigarreads/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

log = snakemake.log_fmt_shell(stdout=True, stderr=True)
shell(
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/variantfiltration/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
6 changes: 6 additions & 0 deletions bio/gatk/variantfiltration/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ rule gatk_filter:
filters={"myfilter": "AB < 0.2 || MQ0 > 50"},
extra="", # optional arguments, see GATK docs
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/variantfiltration"
4 changes: 3 additions & 1 deletion bio/gatk/variantfiltration/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

filters = [
"--filter-name {} --filter-expression '{}'".format(name, expr.replace("'", "\\'"))
for name, expr in snakemake.params.filters.items()
Expand Down
1 change: 1 addition & 0 deletions bio/gatk/variantrecalibrator/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk4 ==4.1.4.1
- snakemake-wrapper-utils ==0.1.3
8 changes: 7 additions & 1 deletion bio/gatk/variantrecalibrator/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rule haplotype_caller:
g1k=gatk_bundle("1000G_phase1.snps.high_confidence.hg38.vcf.gz"),
dbsnp=gatk_bundle("Homo_sapiens_assembly38.dbsnp138.vcf.gz"),
# use aux to e.g. download other necessary file
aux=[gatk_bundle("hapmap_3.3.hg38.sites.vcf.gz.tbi"),
aux=[gatk_bundle("hapmap_3.3.hg38.sites.vcf.gz.tbi"),
gatk_bundle("1000G_omni2.5.hg38.sites.vcf.gz.tbi"),
gatk_bundle("1000G_phase1.snps.high_confidence.hg38.vcf.gz.tbi"),
gatk_bundle("Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi")]
Expand All @@ -38,5 +38,11 @@ rule haplotype_caller:
annotation=["QD", "FisherStrand"], # which fields to use with -an (see VariantRecalibrator docs)
extra="", # optional
java_opts="", # optional
# optional specification of memory usage of the JVM that snakemake will respect with global
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources)
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`:
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties
resources:
mem_mb=1024
wrapper:
"master/bio/gatk/haplotypecaller"
3 changes: 2 additions & 1 deletion bio/gatk/variantrecalibrator/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts


extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)


def fmt_res(resname, resparams):
Expand Down
1 change: 1 addition & 0 deletions bio/gatk3/baserecalibrator/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk ==3.8
- snakemake-wrapper-utils ==0.1.3
3 changes: 2 additions & 1 deletion bio/gatk3/baserecalibrator/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import os

from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts

extra = snakemake.params.get("extra", "")
java_opts = snakemake.params.get("java_opts", "")
java_opts = get_java_opts(snakemake)

input_bam = snakemake.input.bam
input_known = snakemake.input.known
Expand Down
1 change: 1 addition & 0 deletions bio/gatk3/indelrealigner/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ channels:
- defaults
dependencies:
- gatk ==3.8
- snakemake-wrapper-utils ==0.1.3
Loading