Skip to content

Commit

Permalink
Merge pull request #28 from broadinstitute/dp-gatk-fix
Browse files Browse the repository at this point in the history
bugfix version fetching for gatk and samtools
  • Loading branch information
dpark01 committed Jun 11, 2020
2 parents fd383b2 + 03ae651 commit 64c4006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/gatk.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def version(self):
return self.tool_version

def _get_tool_version(self):
return subprocess.check_output([self.install_and_get_path(), '--version']).decode('UTF-8').strip()
self.tool_version = subprocess.check_output([self.install_and_get_path(), '--version']).decode('UTF-8').strip()

def ug(self, inBam, refFasta, outVcf, options=None, JVMmemory=None, threads=None):
options = options or ["--min_base_quality_score", 15, "-ploidy", 4]
Expand Down
2 changes: 1 addition & 1 deletion tools/samtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def version(self):
return self.tool_version

def _get_tool_version(self):
return subprocess.check_output([self.install_and_get_path(), '--version']).decode('UTF-8').split('\n')[0].split()[1]
self.tool_version = subprocess.check_output([self.install_and_get_path(), '--version']).decode('UTF-8').split('\n')[0].split()[1]

def execute(self, command, args, stdout=None, stderr=None, background=False): # pylint: disable=W0221
tool_cmd = [self.install_and_get_path(), command] + args
Expand Down

0 comments on commit 64c4006

Please sign in to comment.