Skip to content
Snippets Groups Projects
Verified Commit b18b1efe authored by Laurent Modolo's avatar Laurent Modolo
Browse files

gatk4: remove spark...

parent 8e3c7bf4
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ container_url = "broadinstitute/gatk:${version}" ...@@ -3,7 +3,7 @@ container_url = "broadinstitute/gatk:${version}"
process variant_calling { process variant_calling {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_mono_cpus"
tag "$file_id" tag "$file_id"
input: input:
...@@ -15,8 +15,7 @@ process variant_calling { ...@@ -15,8 +15,7 @@ process variant_calling {
script: script:
xmx_memory = "${task.memory}" - ~/\s*GB/ xmx_memory = "${task.memory}" - ~/\s*GB/
""" """
gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCallerSpark \ gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCaller \
--spark-master local[${task.cpus}] \
-R ${fasta} \ -R ${fasta} \
-I ${bam} \ -I ${bam} \
-O ${file_id}.vcf -O ${file_id}.vcf
...@@ -25,7 +24,7 @@ gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCallerSpark \ ...@@ -25,7 +24,7 @@ gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCallerSpark \
process filter_snp { process filter_snp {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_mono_cpus"
tag "$file_id" tag "$file_id"
input: input:
...@@ -115,7 +114,7 @@ gatk --java-options "-Xmx${xmx_memory}G" VariantFiltration \ ...@@ -115,7 +114,7 @@ gatk --java-options "-Xmx${xmx_memory}G" VariantFiltration \
process recalibrate_snp_table { process recalibrate_snp_table {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_mono_cpus"
tag "$file_id" tag "$file_id"
input: input:
...@@ -126,8 +125,7 @@ process recalibrate_snp_table { ...@@ -126,8 +125,7 @@ process recalibrate_snp_table {
script: script:
xmx_memory = "${task.memory}" - ~/\s*GB/ xmx_memory = "${task.memory}" - ~/\s*GB/
""" """
gatk --java-options "-Xmx${xmx_memory}G" BaseRecalibratorSpark \ gatk --java-options "-Xmx${xmx_memory}G" BaseRecalibrator \
--spark-master local[${task.cpus}] \
-R ${fasta} \ -R ${fasta} \
-I ${bam} \ -I ${bam} \
-knownSites ${snp_file} \ -knownSites ${snp_file} \
...@@ -162,7 +160,7 @@ gatk --java-options "-Xmx${xmx_memory}G" PrintReads \ ...@@ -162,7 +160,7 @@ gatk --java-options "-Xmx${xmx_memory}G" PrintReads \
process haplotype_caller { process haplotype_caller {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_mono_cpus"
tag "$file_id" tag "$file_id"
input: input:
...@@ -173,8 +171,7 @@ process haplotype_caller { ...@@ -173,8 +171,7 @@ process haplotype_caller {
script: script:
xmx_memory = "${task.memory}" - ~/\s*GB/ xmx_memory = "${task.memory}" - ~/\s*GB/
""" """
gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCallerSpark \ gatk --java-options "-Xmx${xmx_memory}G" HaplotypeCaller \
--spark-master local[${task.cpus}] \
-R ${fasta} \ -R ${fasta} \
-I ${bam} \ -I ${bam} \
-ERC GVCF \ -ERC GVCF \
...@@ -217,7 +214,6 @@ process select_variants_snp { ...@@ -217,7 +214,6 @@ process select_variants_snp {
xmx_memory = "${task.memory}" - ~/\s*GB/ xmx_memory = "${task.memory}" - ~/\s*GB/
""" """
gatk --java-options "-Xmx${xmx_memory}GG" SelectVariants \ gatk --java-options "-Xmx${xmx_memory}GG" SelectVariants \
--spark-master local[${task.cpus}] \
-R ${fasta} \ -R ${fasta} \
-V ${vcf} \ -V ${vcf} \
-selectType SNP \ -selectType SNP \
...@@ -239,7 +235,6 @@ process select_variants_indels { ...@@ -239,7 +235,6 @@ process select_variants_indels {
xmx_memory = "${task.memory}" - ~/\s*GB/ xmx_memory = "${task.memory}" - ~/\s*GB/
""" """
gatk --java-options "-Xmx${xmx_memory}G" SelectVariants \ gatk --java-options "-Xmx${xmx_memory}G" SelectVariants \
--spark-master local[${task.cpus}] \
-R ${fasta} \ -R ${fasta} \
-V ${vcf} \ -V ${vcf} \
-selectType INDEL \ -selectType INDEL \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment