{
"name": "resource_subfolder",
"description": "Input resource: second level",
"type": "File",
"required": true,
"load-children": false,
"derived-from-wrapper-input": "resource",
"derived-from-xnat-object-property": "uri",
"multiple": false
},
{
"name": "resource-select",
"label": "resource-select",
"description": "",
"version": "1.0",
"schema-version": "1.0",
"image": "busybox:latest",
"type": "docker",
"command-line": "echo #RESOURCE# #RESOURCE_SUBFOLDER#",
"override-entrypoint": true,
"mounts": [
{
"name": "in",
"writable": false,
"path": "/input"
}
],
"environment-variables": {},
"ports": {},
"inputs": [
{
"name": "RESOURCE",
"type": "string",
"required": true,
"replacement-key": "#RESOURCE#",
"select-values": []
},
{
"name": "RESOURCE_SUBFOLDER",
"type": "string",
"required": true,
"replacement-key": "#RESOURCE_SUBFOLDER#",
"select-values": []
}
],
"outputs": [],
"xnat": [
{
"name": "resource-select",
"label": "resource-select",
"description": "Run resource-select.",
"contexts": ["xnat:imageSessionData"],
"external-inputs": [
{
"name": "session",
"description": "Input session",
"type": "Session",
"required": true,
"provides-files-for-command-mount": "in",
"load-children": true
}
],
"derived-inputs": [
{
"name": "resource",
"description": "Input resource: all",
"type": "Resource",
"matcher": "@.label =~ /mri.*/",
"required": true,
"provides-value-for-command-input": "RESOURCE",
"load-children": true,
"derived-from-wrapper-input": "session",
"derived-from-xnat-object-property": "label",
"multiple": false
},
{
"name": "resource_subfolder",
"description": "Input resource: second level",
"type": "File",
"matcher": "@.name =~ /.*.root/",
"required": true,
"load-children": false,
"derived-from-wrapper-input": "resource",
"derived-from-xnat-object-property": "uri",
"multiple": false
},
{
"name": "resource_subfolder_name",
"description": "Input resource: second level filename",
"type": "string",
"required": true,
"provides-value-for-command-input": "RESOURCE_SUBFOLDER",
"load-children": false,
"derived-from-wrapper-input": "resource_subfolder",
"derived-from-xnat-object-property": "name",
"multiple": false
}
],
"output-handlers": []
}
]
}