Exemple #1
0
 def post(self):
     args = request.get_json()
     checkplot = CheckSurvivalPlot(args=args, purpose="survivalsinglegene", rplot="survivalplotsinglegene.R")
     res = checkplot.check_run()
     if res["run"]:
         checkplot.plot(filepath=res["filepath"])
     return {"survivalsinglegeneuuid": res["uuid"]}
Exemple #2
0
 def post(self):
     args = request.get_json()
     checkplot = CheckSurvivalPlot(args=args, purpose="gdscsinglegene", rplot="gdscplot_singlegene.R")
     res = checkplot.check_run()
     if res["run"]:
         checkplot.plot(filepath=res["filepath"])
     # return send_file(str(res["filepath"]), mimetype="image/png")
     return {"gdscsinglegeneuuid": res["uuid"]}