Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
306b3471
Commit
306b3471
authored
3 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
Give name to csv files
Fixes #119
parent
f4c89307
No related branches found
No related tags found
1 merge request
!65
Give name to csv files
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/pages/projects/_id.vue
+2
-2
2 additions, 2 deletions
client/pages/projects/_id.vue
jass/server.py
+2
-0
2 additions, 0 deletions
jass/server.py
with
4 additions
and
2 deletions
client/pages/projects/_id.vue
+
2
−
2
View file @
306b3471
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</v-col>
</v-col>
<v-col
>
<v-col
>
<vue-json-to-csv
:json-data=
"Regions"
>
<vue-json-to-csv
:json-data=
"Regions"
:csv-title=
"'LD-independent lead SNPs - '+ this.project.id"
>
<v-btn
small
color=
"#298e49"
style=
"color:#fff; text-transform:capitalize;"
v-on:click=
"processExportAllJASSPVAL()"
>
<v-btn
small
color=
"#298e49"
style=
"color:#fff; text-transform:capitalize;"
v-on:click=
"processExportAllJASSPVAL()"
>
Export LD-independent lead SNPs
Export LD-independent lead SNPs
</v-btn>
</v-btn>
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
:items-per-page=
"5"
:items-per-page=
"5"
class=
"elevation-1"
class=
"elevation-1"
></v-data-table>
></v-data-table>
<vue-json-to-csv
:json-data=
"significantsRegions"
>
<vue-json-to-csv
:json-data=
"significantsRegions"
:csv-title=
"'Significants regions - '+ this.project.id"
>
<v-btn
small
color=
"#298e49"
style=
"color:#fff;"
>
export csv
</v-btn>
<v-btn
small
color=
"#298e49"
style=
"color:#fff;"
>
export csv
</v-btn>
<!--
<button>
<!--
<button>
<b>
export csv
</b>
<b>
export csv
</b>
...
...
This diff is collapsed.
Click to expand it.
jass/server.py
+
2
−
0
View file @
306b3471
...
@@ -129,6 +129,7 @@ def get_full_sumstat(project_id: str):
...
@@ -129,6 +129,7 @@ def get_full_sumstat(project_id: str):
print
(
"
CREATED CSV FILE
"
)
print
(
"
CREATED CSV FILE
"
)
return
FileResponse
(
return
FileResponse
(
project
.
get_csv_path
(),
project
.
get_csv_path
(),
filename
=
f
"
genome_full_
{
project_id
}
.csv
"
,
media_type
=
"
text/csv
"
,
media_type
=
"
text/csv
"
,
)
)
...
@@ -138,6 +139,7 @@ def get_data_manhattan(project_id: str):
...
@@ -138,6 +139,7 @@ def get_data_manhattan(project_id: str):
return
Response
(
return
Response
(
content
=
load_project
(
project_id
=
project_id
).
get_project_genomedata
(),
content
=
load_project
(
project_id
=
project_id
).
get_project_genomedata
(),
media_type
=
"
text/csv
"
,
media_type
=
"
text/csv
"
,
headers
=
{
"
content-disposition
"
:
f
"
attachment; filename=genome_
{
project_id
}
.csv
"
},
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment