Skip to content
Snippets Groups Projects
Commit 86ed77e3 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Serve QQ Plot

Fixes #111
parent 060296c4
No related branches found
No related tags found
1 merge request!61Serve QQ Plot
......@@ -129,6 +129,19 @@
indeterminate
></v-progress-circular>
</v-btn>
<v-btn
:disabled="status.qq_plot != 'READY'"
small color="#298e49" style="color:#fff;text-transform:capitalize;"
v-on:click="qqPlot()">
QQ plot
<v-progress-circular
v-if="status.qq_plot != 'READY'"
:size="15"
:width="2"
style="margin-left:5px"
indeterminate
></v-progress-circular>
</v-btn>
<p>Tips : You can share the link of this page with your collaborators. They will have access to the same results.</p>
</v-col>
</v-row>
......@@ -493,6 +506,11 @@ methods:{
console.log("quadrant "+desiredLink);
window.open(desiredLink,'_blank');
},
qqPlot(){
const desiredLink = process.env.API_URL+"/projects/"+this.project.id+"/qqplot";
console.log("qq "+desiredLink);
window.open(desiredLink,'_blank');
},
manhattanPlot(){
const desiredLink = process.env.API_URL+"/projects/"+this.project.id+"/globalmanhattan";
console.log("globalmanhattan "+desiredLink);
......
......@@ -106,6 +106,14 @@ def project_get_quadrant(project_id: str):
)
@app.get("/api/projects/{project_id}/qqplot")
def project_get_qq_plot(project_id: str):
return FileResponse(
load_project(project_id=project_id).get_qq_plot_path(),
media_type="image/png",
)
@app.get("/api/projects/{project_id}/genome_full")
def get_full_sumstat(project_id: str):
project = load_project(project_id=project_id)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment