Difference between revisions of "AnyWave::CLI"

From WikiMEG
Jump to: navigation, search
(Convert a file)
Line 28: Line 28:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
anywave --convert --input_file d:\eeg1.trc --output_file eeg1 --output_dir d:\data\vhdr --output_format vhdr --hp 1 --lp 100
 
anywave --convert --input_file d:\eeg1.trc --output_file eeg1 --output_dir d:\data\vhdr --output_format vhdr --hp 1 --lp 100
 +
</syntaxhighlight>
 +
 +
== Compute ICA ==
 +
--ica This option will compute ICA on a specific file.<br/>
 +
When using this option you must also specify the following options:<br/>
 +
--modality <EEG, SEEG, MEG>  The type of channels involved in the computation.<br/>
 +
Optional options:<br/>
 +
--comp <value> : the number of components (default is all possible components).<br/>
 +
 +
Example: compute ICA on a MEG data file and get 50 components<br/>
 +
<syntaxhighlight lang="bash">
 +
anywave --ica --input_file d:\c,rfDC  --modality MEG --comp 50 --hp 1 --lp 100
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 13:58, 18 February 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.
--output_format string The file format to use for output data file (vhdr, EDF, MATLAB, ADES).
--skip_marker string A specific marker to skip when reading data. (rejecting artefacted data).
--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.

Convert a file

--convert This option will convert a file to another format.
Example: convert a Micromed EEG file to BrainVision format using a high pass of 1Hz and a low pass of 100Hz

anywave --convert --input_file d:\eeg1.trc --output_file eeg1 --output_dir d:\data\vhdr --output_format vhdr --hp 1 --lp 100

Compute ICA

--ica This option will compute ICA on a specific file.
When using this option you must also specify the following options:
--modality <EEG, SEEG, MEG> The type of channels involved in the computation.
Optional options:
--comp <value> : the number of components (default is all possible components).

Example: compute ICA on a MEG data file and get 50 components

anywave --ica --input_file d:\c,rfDC  --modality MEG --comp 50 --hp 1 --lp 100