Using the plugin from the command line¶
The plugin will requires the following options:
| option | type | description/value |
|---|---|---|
| --run h2 | MANDATORY | name of the plugin |
| --time_window value | MANDATORY | length time window (s) |
| --max_lag value | MANDATORY | maximum lag duration (s) |
| --step value | MANDATORY | step in seconds |
| --algorithm value | optional | h2 r2 (default is h2) |
| --downsampling_factor value | optional | default is 1 (no downsampling). Set to 2 to reduce the sr by 2 |
| --several_result_files true/false | optional | true writes one result file per marked segment of data (the name contains sec-<marker>_num-<n>) instead of a single file. Default is false. The flag needs its value |
With --use_markers good,bad and --several_result_files true the folder receives one file per segment, each named from the data file:
recording__algo-h2_hp-0_lp-0_sec-good_num-1_marker-good.mat and recording__algo-h2_hp-0_lp-0_sec-bad_num-1_marker-bad.mat
(AnyWave 2.16.6 and earlier repeated the name of the first file in the name of the second one).
This plugin also supports the following common options:
| option | type |
|---|---|
| --input_file | MANDATORY |
| --use_markers | optional |
| --skip_markers | optional |
| --output_dir | optional |
| --output_prefix | optional |
| --output_suffix | optional |
| --marker_file | optional |
| --montage_file | optional |
Command line examples¶
Compute h2 on EEG data using a specific marker file and only on H2 markers.
The frequency band is 1-40.
anywave --run h2 --input_file d:\data\myfile.eeg --time_window 4 --step 1 --max_lag 0.1 --marker_file d:\data\h2markers.mrk --use_markers "H2" --hp 1 --lp 40
Compute r2 on the same data assuming the data file has markers named H2:
anywave --run h2 --algorithm r2 --input_file d:\data\myfile.eeg --time_window 4 --step 1 --max_lag 0.1 --use_markers "H2" --hp 1 --lp 40