try: beadDensityPlot.genHeatmap(bfmaskPath, bfmaskstatspath, outputdir, plot_title) except IOError as err: printtime("Bead Density Plot file error: %s" % err) except Exception as err: printtime("Bead Density Plot generation failure: %s" % err) traceback.print_exc() if args.do_sigproc: set_result_status('Beadfind') status = sigproc.beadfind( env['beadfindArgs'], env['libraryKey'], env['tfKey'], env['pathToRaw'], env['SIGPROC_RESULTS']) add_status("Beadfind", status) if status != 0: printtime("ERROR: Beadfind finished with status '%s'" % status) sys.exit(1) ######################################################## #Make Bead Density Plots # ######################################################## bfmaskPath = os.path.join(env['SIGPROC_RESULTS'],"bfmask.bin") bfmaskstatspath = os.path.join(env['SIGPROC_RESULTS'],"bfmask.stats") try:
printtime("Make Bead Density Plots") try: beadDensityPlot.genHeatmap(bfmaskPath, bfmaskstatspath, outputdir, plot_title) except IOError as err: printtime("Bead Density Plot file error: %s" % err) except Exception as err: printtime("Bead Density Plot generation failure: %s" % err) traceback.print_exc() if args.do_sigproc: set_result_status('Beadfind') status = sigproc.beadfind(env['beadfindArgs'], env['libraryKey'], env['tfKey'], env['pathToRaw'], env['SIGPROC_RESULTS']) add_status("Beadfind", status) if status != 0: printtime("ERROR: Beadfind finished with status '%s'" % status) sys.exit(1) ######################################################## #Make Bead Density Plots # ######################################################## bfmaskPath = os.path.join(env['SIGPROC_RESULTS'], "bfmask.bin") bfmaskstatspath = os.path.join(env['SIGPROC_RESULTS'], "bfmask.stats") try: upload_analysismetrics(bfmaskstatspath) update_bfmask_artifacts(bfmaskPath,
else: block_row_offset = 0 except Exception: block_col_offset = 0 block_row_offset = 0 return (block_col_offset, block_row_offset) my_block_offset = get_block_offset() if args.do_sigproc: set_result_status("Beadfind") status = sigproc.beadfind( env["beadfindArgs"], env["libraryKey"], env["tfKey"], env["pathToRaw"], env["SIGPROC_RESULTS"], my_block_offset, ) add_status("Beadfind", status) if status != 0: printtime("ERROR: Beadfind finished with status '%s'" % status) # write return code into file try: f = open( os.path.join(env["SIGPROC_RESULTS"], "analysis_return_code.txt"), "w", ) f.write(str(status))