Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • anywave
  • Documentation
  • Wiki
  • plugin_file_exporter

Last edited by Bruno Colombet Jun 06, 2024
Page history

plugin_file_exporter

  • Export data using the command line
  • Command line options relative to file export
  • montage and data chunks
    • List of available writers
  • Usage

Export data using the command line

Yes, it is possible to export data using the command line.

Command line options relative to file export

option type description/value
--run export MANDATORY name of the plugin
--output_writer "plugin name" optional file format for export (see explanation below). Default output format is AnyWave ADES
--decimate_factor value optional reduce the sampling rate of data. Default is no decimation.

This plugin also considers the following common options:

option type
--input_file MANDATORY
--output_file MANDATORY
--hp optional
--lp optional
--use_markers optional
--skip_markers optional
--output_dir optional
--marker_file optional
--montage_file optional
--lp optional
--hp optional

montage and data chunks

You can export data using a montage of your choice by using --montage_file option.
The exporting process will use the montage and export channels accordingly.

You can also export only one or several chunks of the original data by using markers. If you have previously marked your data for export with a dedicated marker, you can specify the --user_markers opion. This option should be used with a marker file using --marker_file option or with the default marker file associated with the data file (if you add the marker in THAT file).

List of available writers

option description
--output_writer "AnyWave ADES Format" Creates .ades file . Accepts all format as input.
--output_writer "MATLAB Format" Creates .mat file. Accepts all format as input.
--output_writer "EDF Format" Creates .edf file. Accepts only EEG/EMG data.
--output_writer "Brainvision Analyser Format" Creates .vhdr file. Accepts only EEG/EMG data.

Usage

convert MEG file to ADES:

anywave --input_file D:\data\1\cf,rDC --output_file meg_data --output_dir d:\converted 

Creates meg_data.ades, meg_data.dat and meg_data.mrk files in d:\converted.

convert EEG data to VHDR:

anywave --input_file D:\data\eeg\patient1.cnt --output_file patient1 --output_dir d:\converted --output_writer "brainvision analyser format" 

Files patient1.vhdr patient1.eeg and patient1.vmrk will be created in d:\converted.

convert EEG and filter data:

anywave --input_file D:\data\eeg\patient1.cnt --output_file patient1 --output_dir d:\converted --hp 1 --lp 120

Files patient1.ades patient1.dat patient1.mrk will be created in d:\converted. Data will be filtered in band (1-120Hz)

convert eeg and reduce sampling rate:

anywave --input_file D:\data\eeg\patient1.cnt --output_file patient1 --output_dir d:\converted --decimate_factor 2

If we consider patient1.cnt file to contain 1024Hz data, the output patient1.ades file will contain 512Hz data.

Clone repository
  • Build_AnyWave
  • CLI
  • CLI_List
  • Changes
  • ExportData
  • MATLAB_API
  • MATLAB_BIDS
  • MATLAB_debug
  • MATLAB_functions
  • MATLAB_get_data
  • MATLAB_get_data_ex
  • MATLAB_get_markers
  • MATLAB_get_props
  • MATLAB_init
  • MATLAB_run
View All Pages