Skip to content

Commit

Permalink
variant base recalibration: apply GATK resource requests
Browse files Browse the repository at this point in the history
Correctly apply GATK resource requests if BaseQualityRecalibratorSpark will
be run, ensuring engine requirements match local java run. Fixes #2359
  • Loading branch information
chapmanb committed Apr 10, 2018
1 parent bdd2466 commit bd03e25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.1.0 (in progress)

## 1.0.9 (10 April 2018)

- Use smoove for lumpy variant calling and genotyping, replacing custom lumpyexpress
Expand Down
8 changes: 7 additions & 1 deletion bcbio/pipeline/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import resource
import tempfile

import toolz as tz

from bcbio import log, heterogeneity, hla, structural, utils
from bcbio.cwl.inspect import initialize_watcher
from bcbio.distributed import prun
Expand Down Expand Up @@ -111,7 +113,11 @@ def _wres(parallel, progs, fresources=None, ensure_mem=None):

def variant2pipeline(config, run_info_yaml, parallel, dirs, samples):
## Alignment and preparation requiring the entire input file (multicore cluster)
with prun.start(_wres(parallel, ["aligner", "samtools", "sambamba"],
# Assign GATK supplied memory if required for post-process recalibration
align_programs = ["aligner", "samtools", "sambamba"]
if any(tz.get_in(["algorithm", "recalibrate"], utils.to_single_data(d)) in [True, "gatk"] for d in samples):
align_programs.append("gatk")
with prun.start(_wres(parallel, align_programs,
(["reference", "fasta"], ["reference", "aligner"], ["files"])),
samples, config, dirs, "multicore",
multiplier=alignprep.parallel_multiplier(samples)) as run_parallel:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from setuptools import setup, find_packages

version = "1.0.9"
version = "1.1.0a0"

def write_version_py():
version_py = os.path.join(os.path.dirname(__file__), 'bcbio', 'pipeline',
Expand Down

0 comments on commit bd03e25

Please sign in to comment.