예제 #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"]}