Difference between revisions of "AnyWave::CLI"
From WikiMEG
(→Common options) |
(→Command Line Options) |
||
Line 19: | Line 19: | ||
|} | |} | ||
− | == | + | == run a process == |
− | + | Some of the plugins in AnyWave can be executed from the command line.<br/> | |
− | + | This is the case for example, for the ICA plugin: <br/> | |
+ | To run a process plugin, you have to create a json file or string and pass it as an option:<br/> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | anywave -- | + | anywave --run myprocess.json |
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | Example for the ica:<br/> | |
− | + | <syntaxhighlight lang="javascript"> | |
− | = | + | { |
− | + | "plugin" : "ica", | |
− | + | "input_file" : "/path/to/datafile.dat", | |
− | + | "comp" : 50, | |
− | + | "modality" : MEG | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− |
Revision as of 15:27, 12 June 2019
Command Line Options
AnyWave can execute some operation without any user interactions. This is also useful to batch some operations.
Common options
Option | Value | Description |
---|---|---|
--input_file | file | the file to open. |
--output_file | file | The file to create. |
--output_dir | folder | The output folder where to place files created by the command. |
--hp | value | The High Pass filter (in Hz) to apply when reading data. |
--lp | value | The Low Pass filter (in Hz) to apply when reading data. |
--notch | value | The notch (in Hz) to apply when reading data. |
run a process
Some of the plugins in AnyWave can be executed from the command line.
This is the case for example, for the ICA plugin:
To run a process plugin, you have to create a json file or string and pass it as an option:
anywave --run myprocess.json
Example for the ica:
{ "plugin" : "ica", "input_file" : "/path/to/datafile.dat", "comp" : 50, "modality" : MEG }