Overview
One of the more useful features of Catalog is the sample and individual annotation. You can define your sets of variables and fill this variables many times for samples or individuals.
1- Create a Variable Set
[
{
"id": "KEY_boolean",
"type": "BOOLEAN",
"defaultValue": false,
"required": true,
"rank": 0,
"description": "A boolean variable"
}, {
"id": "KEY_cat",
"type": "CATEGORICAL",
"defaultValue": "VAL1",
"required": false,
"multiValue": true,
"allowedValues": [
"VAL1", "VAL2", "VAL3"
],
"rank": 1,
"description": "An array of categorical values"
}, {
"id": "KEY_numeric",
"type": "NUMERIC",
"required": false,
"allowedValues": [
"VAL1", "VAL2", "VAL3"
],
"rank": 2,
"dependsOn" : "KEY_boolean",
"description": "A numeric only allowed when \"KEY_boolean\" is true"
}
]