Skip to content

Commit

Permalink
update code for beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannan Lin authored and Yannan Lin committed Nov 16, 2018
1 parent cd18bbd commit bb594bb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 185 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added Yannan/.DS_Store
Binary file not shown.
45 changes: 0 additions & 45 deletions Yannan/ECoG_Channel_Plotting.py

This file was deleted.

65 changes: 0 additions & 65 deletions Yannan/EEG_Channel_Plotting.py

This file was deleted.

12 changes: 12 additions & 0 deletions Yannan/Skull-stripping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Course Name: BE 223A 18Fall
#Author Name: Yannan Lin
#Purpose: Skull-stripping through BrainSuite

#run brainsuite to get skull-stripped mr data
import os

#os.system(path of cortical_extraction.sh space path of mr data file)
os.system("/Applications/BrainSuite18a/bin/cortical_extraction.sh /Users/yannanlin/Desktop/T1.nii.gz")

#output file same path as filename.nii

26 changes: 0 additions & 26 deletions Yannan/Skull-stripping_ECoG.py

This file was deleted.

28 changes: 0 additions & 28 deletions Yannan/Skull-stripping_EEG.py

This file was deleted.

29 changes: 8 additions & 21 deletions Yannan/readme.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,24 @@
## Skull-stripping and Channel Plotting
## Skull-stripping

#### Components:
- Skull-stripping_EEG.py
- Skull-stripping_ECoG.py
- EEG_Channel_Plotting.py
- ECoG_Channel_Plotting.py

#### Inputs:
- Skull-stripping
- File: MR Image data file
- File format: NIfTI
- Channel plotting
- File: Coordinates of electrodes
- File format: Excel
#### Input
- MR Image data file
- File format: NIfTI

#### Outputs:
- Skull-stripping
- Skull-stripped NIfTI file
- Channel plotting
- Brain mask with electrodes on the surface
#### Output
- Skull-stripped NIfTI file

#### Language:
- Python 2.7

#### Required Python Packages
- psycopg2
- nibabel
- mayavi
- xlrd
- os

#### Requried Software
- BrainSuite 18a

#### Additional Notes
- Once Skull-stripping_EEG.py or Skull_stripping_ECoG.py runs, it will take more than 5 minutes to finish as skull-stripping through BrainSuite can take up to 20 minutes depending on the input file. During skull-stripping, a handful of files will be generated and the only one will be used for channel plotting is filename_cerebrum.mask.nii.gz. This file will generate shortly (usually less than one minute) after running the python script.
- Once BrainSuite runs, it will take more than 5 minutes to finish as skull-stripping through BrainSuite can take up to 20 minutes depending on the input file. During skull-stripping, a handful of files will be generated and the only one will be used for channel plotting is filename_cerebrum.mask.nii.gz. This file will generate shortly (usually less than one minute) after running the python script.
- EEG electrode coordinates also need to be uploaded to database beforehand.

0 comments on commit bb594bb

Please sign in to comment.