Skip to content

Commit

Permalink
Catalog settings.js completed #236
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaltamura committed Jul 15, 2021
1 parent 84aba94 commit c1deb66
Show file tree
Hide file tree
Showing 12 changed files with 279 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/conf/opencga-cohort-browser.config.js

This file was deleted.

39 changes: 39 additions & 0 deletions src/conf/opencga-cohort-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const opencgaCohortBrowserSettings = {
/* menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "samples"
},
{
id: "type"
},
{
id: "date"
},
{
id: "annotations"
}
],
// 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
columns: ["id", "numSamples", "creationDate", "type"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["cohort-view", "sample-view", "json-view"]
*/
};
3 changes: 0 additions & 3 deletions src/conf/opencga-family-browser.config.js

This file was deleted.

41 changes: 41 additions & 0 deletions src/conf/opencga-family-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const opencgaFamilyBrowserSettings = {
/* menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "members"
},
{
id: "phenotypes"
},
{
id: "disorders"
},
{
id: "date"
},
{
id: "annotations"
}
],
// 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
columns: ["id", "members", "disorders", "phenotypes", "caseId", "customAnnotation", "creationDate"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["family-view", "family-relatedness", "json-view"]*/
};
3 changes: 0 additions & 3 deletions src/conf/opencga-file-browser.config.js

This file was deleted.

47 changes: 47 additions & 0 deletions src/conf/opencga-file-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const opencgaFileBrowserSettings = {
/* menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
"id": "name"
},
{
"id": "sampleIds"
},
{
"id": "directory"
},
{
"id": "format"
},
{
"id": "bioformat"
},
{
"id": "internal.index.status.name"
},
{
"id": "date"
},
{
"id": "annotations"
}
],
// 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
columns: ["name", "directory", "size", "format", "bioformat", "index", "creationDate", "actions"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["file-view", "file-preview", "json-view"]
*/
};
3 changes: 0 additions & 3 deletions src/conf/opencga-individual-browser.config.js

This file was deleted.

59 changes: 59 additions & 0 deletions src/conf/opencga-individual-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
const opencgaIndividualBrowserSettings = {
/*menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "samples"
},
{
id: "father"
},
{
id: "mother"
},
{
id: "phenotypes"
},
{
id: "disorders"
},
{
id: "sex"
},
{
id: "karyotypicSex"
},
{
id: "ethnicity"
},
{
id: "lifeStatus"
},
{
id: "date"
},
{
id: "annotations"
}
],
// 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
columns: ["id", "samples", "father", "mother", "disorders", "phenotypes", "caseId", "sex", "lifeStatus", "dateOfBirth", "creationDate"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["individual-view", "clinical-analysis-grid", "individual-inferred-sex", "individual-mendelian-error", "json-view"]
*/
};
3 changes: 0 additions & 3 deletions src/conf/opencga-job-browser.config.js

This file was deleted.

48 changes: 48 additions & 0 deletions src/conf/opencga-job-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const opencgaJobBrowserSettings = {
/* menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "tool"
},
{
id: "input"
},
{
id: "internal.status.name"
},
{
id: "priority"
},
{
id: "tags"
},
{
id: "creationDate"
},
{
id: "visited"
}
],
// 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
columns: ["id",/!* "toolId", "status", "priority", "dependsOn", "output", "execution", "execution", "creationDate"*!/]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["job-view", "job-log", "json-view"]
*/
};
3 changes: 0 additions & 3 deletions src/conf/opencga-sample-browser.config.js

This file was deleted.

45 changes: 45 additions & 0 deletions src/conf/opencga-sample-browser.settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const opencgaSampleBrowserSettings = {
/* menu: {
// merge criterium: it uses this `filters` array as filter for internal one. Each object is merged with spread operator
filters: [
{
id: "id"
},
{
id: "individualId"
},
{
id: "fileIds"
},
{
id: "phenotypes"
},
{
id: "somatic"
},
{
id: "date"
},
{
id: "annotations"
}
],
// 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
columns: ["id", "individualId", "fileIds", "caseId", "collection.method", "processing.preparationMethod", "cellLine", "creationDate", "actions"]
},
// merge criterium: uses this array as filter for internal 1D array.
detail: ["sample-view", "sample-variant-stats-view", "samtools-flags-stats-view", "individual-view", "file-view", "json-view"]
*/
};

0 comments on commit c1deb66

Please sign in to comment.