From 4f7d3e92ad273b88b31f7a5e407b06b7f913dd6e Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Mon, 25 Sep 2023 07:27:27 -0500 Subject: [PATCH 1/4] refactor contrast to condition --- neurosynth-compose-openapi.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index 5bbc415..43195f2 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -932,10 +932,25 @@ components: type: string description: a string representing a binary nifti file to select which voxels a user wants to include in the analysis. nullable: true - contrast: - type: string + conditions: + type: array description: 'selection of categories in the filter column to differentiate groups, or "neurosynth", "neuroquery", or "neurostore" to compare to a database reference group' + x-stoplight: + id: y2wlpp9g6m1ih nullable: true + items: + x-stoplight: + id: wiogm5nzrju66 + type: string + weights: + type: array + x-stoplight: + id: w4fpef48gekp2 + nullable: true + items: + x-stoplight: + id: mtq6rsrjgmn2g + type: number transformer: type: string description: 'A transformation applied to column(s) (e.g., binarize based on a threshold). This is likely to become deprecated.' From 0ebf764d08c14e1419793caa7c567b6e0fe44d56 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 27 Sep 2023 10:52:08 -0500 Subject: [PATCH 2/4] Modified neurosynth-compose-openapi.yml --- neurosynth-compose-openapi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index 43195f2..574c3a7 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -941,7 +941,9 @@ components: items: x-stoplight: id: wiogm5nzrju66 - type: string + type: + - string + - boolean weights: type: array x-stoplight: From e5f2e48d2952d6e864c4ce9a5fdfc260da7984a5 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 27 Sep 2023 11:04:10 -0500 Subject: [PATCH 3/4] make array accept both strings and booleans --- neurosynth-compose-openapi.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index 574c3a7..e36db74 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -933,17 +933,22 @@ components: description: a string representing a binary nifti file to select which voxels a user wants to include in the analysis. nullable: true conditions: - type: array description: 'selection of categories in the filter column to differentiate groups, or "neurosynth", "neuroquery", or "neurostore" to compare to a database reference group' x-stoplight: id: y2wlpp9g6m1ih - nullable: true - items: - x-stoplight: - id: wiogm5nzrju66 - type: - - string - - boolean + oneOf: + - nullable: true + items: + x-stoplight: + id: wiogm5nzrju66 + type: string + - x-stoplight: + id: cpefbentap20i + items: + x-stoplight: + id: ihjh738q2qul8 + type: boolean + type: array weights: type: array x-stoplight: @@ -963,6 +968,12 @@ components: type: string description: a column from annotations selecting which analyses to include in the meta-analysis nullable: true + database_studyset: + x-stoplight: + id: t6l13psq6wvv6 + example: neurostore + type: string + nullable: true estimator: title: estimator type: object From 23b1769de5ad9fb75aca778ef484a3b2fa02f749 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 4 Oct 2023 01:10:19 -0500 Subject: [PATCH 4/4] change array representation --- neurosynth-compose-openapi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index e36db74..d8dea46 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -942,13 +942,14 @@ components: x-stoplight: id: wiogm5nzrju66 type: string + type: array - x-stoplight: id: cpefbentap20i items: x-stoplight: id: ihjh738q2qul8 type: boolean - type: array + type: array weights: type: array x-stoplight: