Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dipterix opened this issue Dec 7, 2018 · 1 comment
Assignees
Labels

Comments

@dipterix
Copy link
Collaborator

dipterix commented Dec 7, 2018

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
Copy link
Collaborator Author

dipterix commented Dec 7, 2018

# 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant