Mercurial > repos > peter-waltman > ucsc_cluster_tools2
changeset 4:2c225e2f0acb draft
Uploaded
author | peter-waltman |
---|---|
date | Fri, 01 Mar 2013 19:53:26 -0500 |
parents | 563832f48c08 |
children | cbc3ecce98ee |
files | cluster.tools/normalize.matrix.by.other.py |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cluster.tools/normalize.matrix.by.other.py Fri Mar 01 19:53:26 2013 -0500 @@ -0,0 +1,14 @@ +#!/usr/bin/env python +import os +import sys +import subprocess + +select_script_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "normalize.matrix.by.other.R") + +cmd_args = [ "Rscript", select_script_path ] + sys.argv[1:] + +proc = subprocess.Popen( cmd_args, stderr=subprocess.PIPE, stdout=subprocess.PIPE ) +(stdoutdata, stderrdata) = proc.communicate() +if proc.returncode: + sys.stderr.write(stderrdata) +sys.stdout.write(stdoutdata)