Skip to content

Commit

Permalink
variant-interpreter settings support fixed #236
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaltamura committed Jul 15, 2021
1 parent c1deb66 commit bad7353
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/jsorolla
3 changes: 0 additions & 3 deletions src/conf/opencga-clinical-analysis-browser.config.js

This file was deleted.

48 changes: 48 additions & 0 deletions src/conf/opencga-clinical-analysis-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const opencgaClinicalAnalysisBrowserSettings = {
menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "family"
},
{
id: "proband"
},
{
id: "sample"
},
{
id: "status"
},
{
id: "priority"
},
{
id: "type"
},
{
id: "date"
}
],
// merge criterium: full outer join-like. it adds objects presents in internal array only and in external array only. In case of same id, the external value overwrite the internal.
examples: [
]
},
table: {
// merge criterium: spread operator
toolbar: {
showColumns: true,
showExport: false,
showDownload: true
// columns list for the dropdown will be added in grid components based on settings.table.columns
},
// merge criterium: uses this array as filter for internal 1D/2D array. It handles row/col span
// TODO NOTE this refers to clinical-analysis-grid (same list in review-cases.settings)
columns: ["caseId", "probandId", "familyId", "disorderId", "interpretation", "action"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["clinical-analysis-view", "json-view"]
};
9 changes: 5 additions & 4 deletions src/conf/opencga-clinical-review-cases.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ const OpencgaClinicalReviewCasesSettings = {
id: "assignee"
}
],
// merge criterium: full outer join like. it adds objects presents in internal array only and in external array only. In case of objects with same id, the external values overwrite the internal.
// merge criterium: full outer join-like. it adds objects presents in internal array only and in external array only. In case of same id, the external value overwrite the internal.
examples: [
{
/* {
id: "Intellectual disability2",
active: false,
query: {
disorder: "Intellectual disability"
}
}
}*/
]
},
table: {
Expand All @@ -42,9 +42,10 @@ const OpencgaClinicalReviewCasesSettings = {
showCreate: true,
showExport: false,
showDownload: true,
// columns list will be added in grid components based on settings.table.columns
// columns list for the dropdown will be added in grid components based on settings.table.columns
},
// merge criterium: uses this array as filter for internal 1D/2D array. It handles row/col span
// TODO NOTE this refers to clinical-analysis-grid (same list in clinical-analysis-browser.settings)
columns: ["caseId", "probandId", "familyId", "disorderId", "interpretation", "action"]
},
// TODO details tabs are not configurable at the moment
Expand Down
2 changes: 1 addition & 1 deletion src/conf/opencga-variant-browser.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const OpencgaVariantBrowserSettings = {
showColumns: true,
showExport: false,
showDownload: true
// columns list will be added in grid components based on settings.table.columns
// columns list for the dropdown will be added in grid components based on settings.table.columns
},
// merge criterium: uses this array as filter for internal 1D/2D array. It handles row/col span
columns: ["id", "gene", "type", "consequenceType", "deleteriousness", "conservation", "samples", "cohorts", "popfreq", "clinicalInfo"]
Expand Down
2 changes: 1 addition & 1 deletion src/conf/variant-interpreter-browser-cancer.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const variantInterpreterBrowserCancerSettings = {
showColumns: true,
showExport: false,
showDownload: true
// columns list will be added in grid components based on settings.table.columns
// columns list for the dropdown will be added in grid components based on settings.table.columns
},
// merge criterium: uses this array as filter for internal 1D/2D array. It handles row/col span
// columns: ["id"]
Expand Down
2 changes: 1 addition & 1 deletion src/conf/variant-interpreter-browser-rd.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const variantInterpreterBrowserRdSettings = {
showColumns: true,
showExport: false,
showDownload: true
// columns list will be added in grid components based on settings.table.columns
// columns list for the dropdown will be added in grid components based on settings.table.columns
},
// merge criterium: uses this array as filter for internal 1D/2D array. It handles row/col span
columns: ["id", "gene", "type", "consequenceType", "zygosity", "evidences", "VCF_Data", "frequencies", "clinicalInfo", "interpretation", "review", "actions"]
Expand Down
2 changes: 1 addition & 1 deletion src/conf/variant-interpreter-qc-overview.settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const variantInterpreterQcOverviewSettings = {
// for both cancer and family tabs
// for both cancer and family cases
tabs: ["Summary", /* "VariantStats", "SamtoolsPlots", /* "Alignment",*/ "InferredSex", "MendelianErrors", "Relatedness", /* "AlignmentStats",*/ "GenomicContext"]
}

0 comments on commit bad7353

Please sign in to comment.