code: def _build_qsub_command(cmd, job_name, outfile, errfile, pe, n_cpu):
      
      qsub_template = """echo {cmd} | qsub -o ":{outfile}" -e ":{errfile}" -V -r y -pe {pe} {n_cpu} -N {job_name}"""
      return qsub_template.format(
          cmd=cmd, job_name=job_name, outfile=outfile, errfile=errfile,
          pe=pe, n_cpu=n_cpu)
docs: Submit shell command to SGE queue via `qsub`