Mercurial > repos > melissacline > ucsc_xena_platform
comparison xena_delete.py @ 2:6eeb3ca663fb
Fixed dataset delete bugs (the full pathname was needed) plus changed xena_import to give a checkbox for turning on column normalization
author | melissacline |
---|---|
date | Wed, 14 Jan 2015 15:21:09 -0800 |
parents | 8bb037f88ed2 |
children | 98b498545a52 |
comparison
equal
deleted
inserted
replaced
1:ca4510434eda | 2:6eeb3ca663fb |
---|---|
27 | 27 |
28 # Set up the xena delete comamnd and try to execute it. If an exception | 28 # Set up the xena delete comamnd and try to execute it. If an exception |
29 # is generated, output a traceback and exit with nonzero status. If | 29 # is generated, output a traceback and exit with nonzero status. If |
30 # no exception was generated, indicate a successful import and exit | 30 # no exception was generated, indicate a successful import and exit |
31 # with zero status. | 31 # with zero status. |
32 xenaDeleteCmd = "java -jar %s --delete %s -p %s" % (xena.jarPath(), | 32 xenaDeleteCmd = "java -jar %s --delete %s/%s -p %s" % (xena.jarPath(), |
33 args.datasetName, | 33 xenaFileDir, |
34 xena.port()) | 34 args.datasetName, |
35 xena.port()) | |
36 print "Issuing command", xenaDeleteCmd | |
35 try: | 37 try: |
36 subprocess.call(xenaDeleteCmd, shell=True) | 38 subprocess.call(xenaDeleteCmd, shell=True) |
37 except: | 39 except: |
38 exc_type, exc_value, exc_traceback = sys.exc_info() | 40 exc_type, exc_value, exc_traceback = sys.exc_info() |
39 lines = traceback.format_exception(exc_type, exc_value, exc_traceback) | 41 lines = traceback.format_exception(exc_type, exc_value, exc_traceback) |