dipterix / rave-gists

Code snippets for analyzing iEEG data with RAVE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RAVE-iEEG Code Snippet

What's this

This repository contains code snippets to perform iEEG (intracranial electroencephalography) analysis with RAVE framework code. RAVE provides powerful graphical user interface (GUI). However, there are more you can do without GUI. This repository is designed for RAVE users who want to do something that hasn't been integrated into RAVE's GUI

How to use this repository

Most scripts in this repository can be directly sourced into R. [This example] provides documentation on how to run the snippet.

Method 1:

You can download the snippets, un-comment the code that declares the global variables, then run the script just like any other R script.

Method 2

Use built-in function raveio::load_snippet

fun <- raveio::load_snippet("dummy-snippet")

# print function to show documentation
fun

# Call snippet as function
fun("My inputs")

Build your own rave-gists

  1. Download this repository in zip file
  2. Open file rave-gists.Rproj using RStudio
  3. Run the following command to restore the developing environment
# similar to conda/venv in R
install.packages("renv")

# Download and install packages to current project
renv::restore()

# Finalize installation
ravemanager::finalize_installation()

# Ensure python for RAVE (optional but recommended)
rpymat:::ensure_rpymat()

An isolated RAVE will be downloaded and installed on your project folder.

About

Code snippets for analyzing iEEG data with RAVE


Languages

Language:R 100.0%