rave icon indicating copy to clipboard operation
rave copied to clipboard

How to preprocess subject without launching web app (use command lines only)

Open dipterix opened this issue 7 years ago • 1 comments

One advantage of RAVE preprocessing pipeline is that it moves "referencing" part to the main application. Instead of reference first and then wavelet, RAVE wavelet and then reference. (Mathematically and numerically they produce exactly the same result).

In RAVE, preprocessing pipeline has four sections:

  1. Import subject from raw file
  2. Notch filter
  3. Wavelet
  4. Create epoch files (Optional)

Because there is no reference before wavelet. You just need to do wavelet once.

I wrote a script for you in case you want to run in command lines.

dipterix avatar Dec 07 '18 16:12 dipterix

# Skip the first two commands if you already have rave version ">= 0.1.5.0046"
# Use rave::rave_version() to check current version

# Update RAVE:
devtools::install_github('beauchamplab/rave')

# Install rstudioapi if you don't have it, use rutabaga:::package_installed('rstudioapi')
install.packages('rstudioapi')

# Load preprocessing script
fpath = system.file('utils/preprocessing_no_gui.R', package = 'rave')
rstudioapi::documentNew(text = paste(readLines(fpath), collapse = '\n'), type = 'r')

Then a demo preprocessing script is created for you.

dipterix avatar Dec 07 '18 16:12 dipterix