comparison cluster.tools/normalize.matrix.by.other.py @ 4:2c225e2f0acb draft

Uploaded
author peter-waltman
date Fri, 01 Mar 2013 19:53:26 -0500
parents
children
comparison
equal deleted inserted replaced
3:563832f48c08 4:2c225e2f0acb
1 #!/usr/bin/env python
2 import os
3 import sys
4 import subprocess
5
6 select_script_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "normalize.matrix.by.other.R")
7
8 cmd_args = [ "Rscript", select_script_path ] + sys.argv[1:]
9
10 proc = subprocess.Popen( cmd_args, stderr=subprocess.PIPE, stdout=subprocess.PIPE )
11 (stdoutdata, stderrdata) = proc.communicate()
12 if proc.returncode:
13 sys.stderr.write(stderrdata)
14 sys.stdout.write(stdoutdata)