EpilepsyAnalysis
Jump to navigation
Jump to search
Introduction
Epilepsy analysis at the NIH is comprised of several components
- Copy data from MEG server and MRI folder
- Coregistration
- Beamformer Analysis
- Kurtosis Analysis of virtual sensors
- Ranking of virtual sensors
- Review of sensor data and virtual sensors
- Coregistration of MRI data to the orthohull data
Analysis Code and Configuration
The current analysis pipeline is performed through several Jupyter notebooks that are found on the internal repository
- Configure the computer MEG code dependencies
https://megcore.nih.gov/index.php/Configuring_analysis_machine
- Configure the epilepsy code
https://megcore.nih.gov/index.php/Configuring_Epilepsy_Analysis
Details
- Copy data from server (MEG_do_01.sh)
- Enter information into the MEG file (####FIX NAME)
- Run MEG_do_01.sh $DATE to pull the MEG data from the MEG repository and process the DICOM data
- Coregistration
- Add LPA, RPA, Nasion fiducials to the dataset
- MEG_do_02.sh
- Opens Afni for the marking of the tags
- Runs orthohull to realign the MRI to be aligned along the LPA/RPA/Nasion axis
- SAM analysis
- Constrain orientation (beta power analysis)
- Search for excess kurtosis
- Mapping voxels with highest excess kurtosis
- Creating 'virtual sensors' at the locations with excessive kurtosis
- Reviewing the SAM virtual sensors along with the sensor timeseries
- Open the CTF dataset using the CTF DataEditor (may need to be run through the singularity container if dependencies have not been met on the os)
- Add SAM output (this will apply the sensor weights to create a virtual sensor time series)
- Determine if the regions with high kurtosis contain epileptiform activity
- SAMepi parameters
- Covariance 10-70 (20-70 or 30-100Hz)
Software Requirements SAMscrV* MEG_do_0*.sh - These commands must be launched from the scripts dir as the commands use the pwd command to structure the processing paths and determine the location of the patient data
Issues with installation At the top level of SAM software, the make command must be run. The links to the compiled SAM binaries must
SAMsrcV3 - requires python 2.7 SAMsrcV5 - compiled for python 3.7+