code: def _get_cmd(cmd):
      
      check_cmd = "RunTHetA.py"
      try:
          local_cmd = subprocess.check_output(["which", check_cmd]).strip()
      except subprocess.CalledProcessError:
          return None
      return [sys.executable, "%s/%s" % (os.path.dirname(os.path.realpath(local_cmd)), cmd)]
docs: Retrieve required commands for running THetA with our local bcbio python.