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)

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 )
submit shell command to sge queue via qsub .