... | @@ -2,23 +2,8 @@ |
... | @@ -2,23 +2,8 @@ |
|
|
|
|
|
# Requirements
|
|
# Requirements
|
|
The plugin must be able to handle command line launch mode.
|
|
The plugin must be able to handle command line launch mode.
|
|
See this section
|
|
[See this section](/anywave/documentation/-/wikis/MATLAB anywave function)
|
|
|
|
|
|
# Modify the dest.txt
|
|
|
|
Add the line:
|
|
|
|
````
|
|
|
|
flags = CanRunFromCommandLine
|
|
|
|
````
|
|
|
|
Note that you can set several flags separating them by '**:**'
|
|
|
|
|
|
|
|
# Specify the command line parameters your plugin will handle
|
|
|
|
The plugin will receive all the default command line options handled by AnyWave but if you need to handle your own options then you must provide a file called **args.json** and put it along with desc.txt file in the plugin folder.
|
|
|
|
Example of a plugin that will handle the options **eeg_file** (path to a EEG data file) and **meg_file** (path to a MEG data file):
|
|
|
|
````json
|
|
|
|
{
|
|
|
|
"Parameters" : [ "eeg_file", "meg_file"]
|
|
|
|
}
|
|
|
|
````
|
|
|
|
# Handle options in your code
|
|
# Handle options in your code
|
|
````matlab
|
|
````matlab
|
|
function main(varargin)
|
|
function main(varargin)
|
... | @@ -35,7 +20,6 @@ else |
... | @@ -35,7 +20,6 @@ else |
|
end
|
|
end
|
|
end
|
|
end
|
|
````
|
|
````
|
|
|
|
|
|
# Avoid figure and GUIs
|
|
# Avoid figure and GUIs
|
|
If you want the plugin to be run as a BIDS pipeline you must not stop the execution by using blocking dialog boxes.
|
|
If you want the plugin to be run as a BIDS pipeline you must not stop the execution by using blocking dialog boxes.
|
|
|
|
|
... | | ... | |