Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-qtl-db
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Couldn't fetch the linked file.
Show more breadcrumbs
cc-qtl
cc-qtl-db
Merge requests
!94
Pheno category add exp
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Pheno category add exp
pheno-category-add-exp
into
dev
Overview
0
Commits
6
Pipelines
3
Changes
6
Merged
Remi PLANEL
requested to merge
pheno-category-add-exp
into
dev
2 years ago
Overview
0
Commits
6
Pipelines
3
Changes
4
Expand
can add a new phenotype category when uploading experiment
Edited
2 years ago
by
Remi PLANEL
0
0
Merge request reports
Viewing commit
6a1d43bd
Prev
Next
Show latest version
4 files
+
47
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
6a1d43bd
Merge branch 'dev' into pheno-category-add-exp
· 6a1d43bd
Remi PLANEL
authored
2 years ago
client-nuxt/pages/projects/_id/analysis/_analysisId/results/peaks/index.vue
+
30
−
4
Options
@@ -2,6 +2,7 @@
<v-card
flat
color=
"transparent"
class=
"mt-3"
>
<v-card>
<error-alert
v-if=
"error"
:error-message=
"error"
></error-alert>
<Peaks
v-if=
"sanitizedPeaks.length > 0"
:title=
"titleList"
@@ -11,11 +12,19 @@
:headers=
"headers"
:selected-item=
"selectedItem"
/>
<v-card-actions
><download-csv
:data=
"exportPeak"
:name=
"exportFileName"
>
<v-btn
class=
"mx-2"
color=
"secondary"
small
fab
>
<v-icon>
mdi-table-arrow-down
</v-icon>
</v-btn>
</download-csv></v-card-actions
>
</v-card>
<nuxt-child
/>
</v-card>
</
template
>
<
script
>
import
JsonCSV
from
'
vue-json-csv
'
import
ErrorAlert
from
'
@/components/ErrorAlert
'
import
Peaks
from
'
~/components/DataTableActions.vue
'
@@ -23,6 +32,7 @@ export default {
components
:
{
Peaks
,
ErrorAlert
,
downloadCsv
:
JsonCSV
,
},
async
asyncData
({
$axios
,
params
,
$auth
,
route
})
{
@@ -56,11 +66,11 @@ export default {
titleList
:
'
Significant peaks
'
,
headers
:
[
{
text
:
'
Id
'
,
align
:
'
start
'
,
value
:
'
id
'
},
//
{
//
text: 'Variable Name',
{
text
:
'
Variable Name
'
,
//
value: 'name',
//
},
value
:
'
name
'
,
},
{
text
:
'
Chromosome
'
,
value
:
'
chromosome
'
},
{
text
:
'
Position
'
,
value
:
'
position
'
},
{
text
:
'
Lod Score
'
,
value
:
'
lod
'
},
@@ -78,9 +88,25 @@ export default {
itemRoute
:
this
.
getItemRoute
(
peak
),
}))
},
exportPeak
()
{
return
this
.
peaks
.
map
(
// eslint-disable-next-line camelcase
({
ci_hi
,
ci_lo
,
lod
,
p_value
,
position
,
variable_name
})
=>
({
ci_hi
,
ci_lo
,
lod
,
p_value
,
position
,
variable_name
,
})
)
},
selectedItem
()
{
return
parseInt
(
this
.
$route
.
params
?.
peakId
)
},
exportFileName
()
{
return
`
${
this
.
projectId
}
-
${
this
.
analysisId
}
-significant-peaks.csv`
},
},
methods
:
{
getItemRoute
({
id
:
peakId
})
{