示例#1
0
文件: survival.py 项目: yanding/GSCA
 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"]}
示例#2
0
文件: gdsc.py 项目: yanding/GSCA
 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"]}