Skip to content

Commit

Permalink
tools/gatk: when determining gatk version, ignore stderr output to av…
Browse files Browse the repository at this point in the history
…oid Picked up _JAVA_OPTIONS message
  • Loading branch information
notestaff committed Feb 7, 2020
1 parent fca68ca commit 6fe46aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/gatk.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def _get_tool_version(self):
self.install_and_get_path(), '--version'
]

self.tool_version = util.misc.run_and_print(cmd, buffered=False, silent=True).stdout.decode("utf-8").strip()
self.tool_version = util.misc.run_and_print(cmd, buffered=False, silent=True,
stderr=subprocess.DEVNULL).stdout.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

0 comments on commit 6fe46aa

Please sign in to comment.