|
| 1 | +TABLE OF CBRAIN SPECIFIC BOUTIQUES CUSTOM PROPERTIES |
| 2 | + |
| 3 | +The standard Boutiques properties set does not cover all the need for CBRAIN |
| 4 | +thus we introduce a number of custom properties, which can be added to the |
| 5 | +"custom" section of a Boutiques descriptor, to fine-tune the way CBRAIN |
| 6 | +interpret the descriptor. For example, |
| 7 | + |
| 8 | + |
| 9 | + "custom":{ |
| 10 | + "cbrain:readonly-input-files":true, |
| 11 | + "cbrain:author":"Erik Lee < [email protected]>", |
| 12 | + "cbrain:allow_empty_strings":[ |
| 13 | + "derivatives_prefix" |
| 14 | + ], |
| 15 | + "cbrain:no-run-id-for-outputs":[ |
| 16 | + "OutputDirectory" |
| 17 | + ], |
| 18 | + "cbrain:integrator_modules":{ |
| 19 | + "BoutiquesFileTypeVerifier":{ |
| 20 | + "SubjectDirectory":[ |
| 21 | + "BidsSubject" |
| 22 | + ] |
| 23 | + }, |
| 24 | + "BoutiquesFileNameMatcher":{ |
| 25 | + "SubjectDirectory":"^sub-[a-zA-Z0-9_]+$" |
| 26 | + }, |
| 27 | + "BoutiquesOutputFileTypeSetter":{ |
| 28 | + "OutputDirectory":"MADEOutput" |
| 29 | + }, |
| 30 | + "BoutiquesForcedOutputBrowsePath":{ |
| 31 | + "OutputDirectory":"[DERIVATIVES_PREFIX]made" |
| 32 | + }, |
| 33 | + "BoutiquesBidsSingleSubjectMaker":"SubjectDirectory", |
| 34 | + "BoutiquesBidsSubjectFileSelector":{ |
| 35 | + "SubjectDirectory":"all_to_keep" |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | + |
| 40 | + |
| 41 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 42 | +| PROPERTY | DESCRIPTION | |
| 43 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 44 | +| "cbrain:author": | | |
| 45 | +| "Full Name <email@address>" | Author(s) of Boutiques descriptor | |
| 46 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 47 | +| "cbrain:can-submit-new-tasks": | Experimental | |
| 48 | +| true | Allows forking sub-task(s). To submit a subtask, a task must create | |
| 49 | +| | a ".new-task-*.json" JSON file at the root of its work directory | |
| 50 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 51 | +| "cbrain:ignore_outputs": [ | | |
| 52 | +| output_id_1, | The listed outputs will not be saved. | |
| 53 | +| output_id_2, | | |
| 54 | +| output_id_3, | | |
| 55 | +| ... | | |
| 56 | +| ] | | |
| 57 | +| | | |
| 58 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 59 | +| "cbrain:save_back_inputs": [ | | |
| 60 | +| id_1, | Saves back listed inputs to the dataprovider (mutates the original inputs) | |
| 61 | +| id_2, | | |
| 62 | +| id_3, | | |
| 63 | +| ... | | |
| 64 | +| ] | | |
| 65 | +| | | |
| 66 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 67 | +| "cbrain:readonly-input-files": | | |
| 68 | +| true | Indicates that the tool cannot modify inputs | |
| 69 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 70 | +| "cbrain:alters-input-files": | | |
| 71 | +| true | Indicates that this task may alter its input files | |
| 72 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 73 | +| "cbrain:no-run-id-for-outputs": [ | | |
| 74 | +| id_1, | Lists output IDs where no run id is inserted. | |
| 75 | +| id_2, | Prevents the usual practice of adding a run id to output file names. | |
| 76 | +| id_3, | Only allowed for MultiLevel data-providers with "browse path" capability. | |
| 77 | +| ] | With this option, new results can overwrite old files. | |
| 78 | +| | | |
| 79 | +| | | |
| 80 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 81 | +| "cbrain:allow_empty_strings": | | |
| 82 | +| [input_id_1, input_id_2 ...] | Allow an empty string as a valid input | |
| 83 | +| | | |
| 84 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 85 | +| "cbrain:boutiques_bosh_exec_mode":| (Experimental) | |
| 86 | +| "launch" | The default implied value is 'simulate'. | |
| 87 | +| | In the mode 'simulate', at the moment of creating the | |
| 88 | +| | tool's script in cluster_commands(), the output of | |
| 89 | +| | bosh exec simulate | |
| 90 | +| | will be substituted in the script to | |
| 91 | +| | generate the tool's command. In the mode 'launch', an actual | |
| 92 | +| | bosh exec launch | |
| 93 | +| | command will be put in the script instead. | |
| 94 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 95 | +| "cbrain:inherits-from-class": | ( Restricted use ) | |
| 96 | +| "MyClassName" | An advanced feature for seasoned CBRAIN experts only. | |
| 97 | +| | That allows overwriting the standard task behavior with a custom class. | |
| 98 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 99 | +| "cbrain:integrator_modules": { | Loads a module to modify the CBRAIN behavior. | |
| 100 | +| | Does not work for legacy integration method | |
| 101 | +| "BoutiquesModuleOne": | All the modules are defined in the lib folder of CBRAIN | |
| 102 | +| {module-specific-parameters}, | codebase or a plugin. Thus documentation for all the | |
| 103 | +| "BoutiquesModuleTwo": | module-based sub-properties can be auto-generated | |
| 104 | +| {module-specific-parameters} | with the rdoc utility. | |
| 105 | +| } | | |
| 106 | +| | | |
| 107 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 108 | +| "cbrain:ignore-exit-status": | (Deprecated) | |
| 109 | +| true | Considers the task successful even if there is a wrong exit status. | |
| 110 | +| | For the case the tool has wrong exit codes | |
| 111 | +| | (deprecated and being superseded by a module-based property). | |
| 112 | +| | | |
| 113 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
| 114 | +| "cbrain:walltime-estimate": | (Deprecated) | |
| 115 | +| value_in_seconds | Since walltime was added to Boutiques resources sections. | |
| 116 | ++-----------------------------------+----------------------------------------------------------------------------------+ |
0 commit comments