Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
1dc9b35
exe business
Mar 15, 2022
6194f9e
some progress- needs cleanup and test
Mar 16, 2022
cceca54
some cleanup, waiting for new exe build
Mar 18, 2022
07fd00c
some more edits, multi dir support, waiting on win32 build
Mar 22, 2022
b6e2271
edits to eeg2bids - mff conversion
Mar 24, 2022
0046701
adding mff_to_set.exe using Git LFS
Mar 24, 2022
a42cf07
mff_to_set.exe - increased java heap memory size to 9GB
Mar 24, 2022
840e90a
added thread for mff to set conversion, fixed bug with eventfiles
Mar 25, 2022
7605924
Dev notes documentation
Mar 25, 2022
d1876aa
paths and stuff for the build
Mar 25, 2022
d8fbdba
troubleshooting with mne lib updates
Mar 29, 2022
e87cb94
recreate the set file once write_raw_bids is done to overwrite the co…
cmadjar Mar 30, 2022
5b8e0f3
remove FDT file after the second creation of the SET file
cmadjar Mar 30, 2022
4b357d8
updating dependencies in requirements.txt
Mar 31, 2022
4d301fb
Merge pull request #1 from aces/fix_corrupted_eeglab_file_creation
jesscall Mar 31, 2022
5226397
debug build
Mar 31, 2022
48c9ac2
changed launch of conversion exe from python to nodejs service
Apr 1, 2022
d6b5574
few bug fixes
cmadjar Apr 1, 2022
7fba852
Merge pull request #3 from cmadjar/bug_fixes
jesscall Apr 4, 2022
30f2769
code review feedbacks
Apr 4, 2022
176ca6a
rm print
Apr 4, 2022
9fcc885
add validate on hook- prod build unhang
Apr 4, 2022
c4e6255
bids_validator update
Apr 5, 2022
4af7c6d
Merge pull request #1 from jesscall/2022_02_28_mff_to_set
jstirling91 Apr 7, 2022
8d55023
Recreate events.tsv (#2)
cmadjar May 4, 2022
7a1273a
Add upload capability to upload compressed bids folder to loris insta…
jstirling91 Apr 19, 2022
1e2abf3
Update workflow to optimize it for HBCD usecase
jstirling91 Apr 22, 2022
9c24fac
Attempt to add ability to bidsify multiple tasks into one output
jstirling91 May 4, 2022
025ccfd
Fix issues with multiple tasks output to bids
May 6, 2022
e33ed50
Add in modal on MFF conversion and auto launch to next tab
jstirling91 May 9, 2022
505791d
Fix issues with modal popout on mff conversion
May 9, 2022
65997b2
Add in form error checks for LORIS specific fields
jstirling91 May 9, 2022
bd6d5e0
Add file name check to configuration form
jstirling91 May 10, 2022
a1d9a6c
Update to use new flags executable
May 17, 2022
0b337af
Add flag status checks to validation page, asking for feedback when r…
jstirling91 May 19, 2022
0bfbcbf
Update to use new version of mmf conversion and fix issues in display…
May 20, 2022
3c9ccfb
fix issues with flags and remove unneeded fields from form
May 24, 2022
210227a
Update naming of bids output file
May 24, 2022
f424eda
Update loris uplaod to include flags and candidate data
May 26, 2022
8f46bd3
Compress and upload PII and include upload of photos
May 26, 2022
fea6a5b
remove ability to store password
Jun 22, 2022
6a5519a
Make modifucations based on feedback
Jun 22, 2022
521093f
add validation on DCCID and disable PSCID until valid
jstirling91 Jun 23, 2022
457910e
Update executable and add in more error handling
Jul 6, 2022
a009696
Update to new executable and add better handling of errors
Jul 27, 2022
d4114a0
Add check on socket connection when packaging files
jstirling91 Jul 27, 2022
2ad258b
Add stack trace to error response on bids conversion
jstirling91 Jul 28, 2022
8218ef9
Add error handle for unknown error in upload
jstirling91 Aug 8, 2022
cc91df2
Version 1.0.15 add additional debugging as well as new file to list a…
Aug 25, 2022
4053357
Error reporting tool
laemtl Sep 21, 2022
9a689e8
Code cleaning
laemtl Sep 21, 2022
eb85875
Get logs from Python process
laemtl Sep 22, 2022
c13148a
Improve login UX
laemtl Sep 22, 2022
073f944
python.log
laemtl Sep 23, 2022
16a9825
Spec file
laemtl Sep 23, 2022
54f3832
Stop server on exit
laemtl Sep 26, 2022
320f929
Unbuffer python stdout and log rotate
laemtl Sep 26, 2022
95932b7
Release 1.0.16
laemtl Sep 29, 2022
d71ef47
JS log
laemtl Oct 5, 2022
09deaf9
Additional logs and Electrodes/Events patch for BIDS export
laemtl Oct 12, 2022
9429cb7
Display EEG2BIDS version
laemtl Nov 1, 2022
9f15ec4
Enable BIDS overides
laemtl Nov 1, 2022
acfc26a
Update mff->set script
laemtl Nov 1, 2022
d194c59
Login error logs
laemtl Feb 27, 2023
a73be12
Chunked Upload
laemtl Feb 27, 2023
e024517
Build fixes
laemtl Feb 27, 2023
f0eb429
Code cleanup and user feedbacks
laemtl Mar 1, 2023
573129c
Code refactoring
laemtl Mar 13, 2023
c7876a6
Add more install options
laemtl Apr 3, 2023
63fafda
Change pyinstaller mode from one-file to one-folder
laemtl May 4, 2023
90dbc34
RecordingParameters
laemtl May 4, 2023
56f6148
Login and config
laemtl May 19, 2023
ed16f75
Refactoring
laemtl Jul 4, 2023
0bb883b
Option to create new task and QA fixes
laemtl Jul 18, 2023
4cc8f23
Participant Metadata fix and Exclude behavior
laemtl Jul 19, 2023
a34196d
.fdt clarification and epoched data
laemtl Jul 19, 2023
e8d8dd7
Remove specific tasks
laemtl Jul 19, 2023
50a0531
Clean dist folder during build step
laemtl Oct 25, 2023
02790c6
Revert "Clean dist folder during build step"
laemtl Oct 25, 2023
8e34a6f
Upgrade mne-bids version
laemtl Nov 22, 2023
26ab6e4
Preload SET files
laemtl Nov 22, 2023
74f799c
Support Epoch data
laemtl Nov 24, 2023
7b64ae7
Fix modal word-break
laemtl Nov 24, 2023
98e691d
Rename eeg2bids -> set2bids
laemtl Nov 24, 2023
9e2572b
Linux build
laemtl Nov 25, 2023
964c4a4
Fix Windows build
laemtl Nov 28, 2023
13c14ec
Merge branch 'set2bids' of https://github.com/aces/EEG2BIDS into set2…
laemtl Nov 28, 2023
4cd25ff
Add package-lock.json
laemtl Jun 20, 2024
aeb4d84
backend connected to frontend
NadaElmasry Oct 18, 2024
db6ff9b
added frontend and backend support to set2bids
NadaElmasry Nov 1, 2024
3f93db0
Merged EEG2BIDS and SET2BIDS backends and Added FrontEnd support
NadaElmasry Nov 4, 2024
50807d6
Removed support for old set2bids backend
NadaElmasry Nov 4, 2024
7eb3503
fixed typo in package.json
NadaElmasry Dec 19, 2024
73293cd
clean up code
NadaElmasry Dec 19, 2024
7ea6e14
Upgrade dependencies to match main -- Structural chagnes for function…
jeffersoncasimir Jan 24, 2025
0b46ddc
Change annotations to events
jeffersoncasimir Jan 24, 2025
587ca0b
Removed unecessary changes
jeffersoncasimir Jan 24, 2025
70fc0b0
Removed unecessary changes
jeffersoncasimir Jan 24, 2025
7ef8691
Rename module to eeg2bids
jeffersoncasimir Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"plugins": [
"react"
],
Expand Down Expand Up @@ -34,8 +34,8 @@
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"linebreak-style": "off",
"spaced-comment": "off",
"no-unused-vars": "off",
"spaced-comment": "error",
"no-unused-vars": "error",
"require-jsdoc": "error",
"no-console": ["warn", {
"allow": ["info", "warn", "error"]
Expand Down
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python/tools/mff_to_set.exe filter=lfs diff=lfs merge=lfs -text
.exe filter=lfs diff=lfs merge=lfs -text
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
.spec
.python-version
node_modules/
package-lock.json
logs/*.log
VERSION
venv/
Expand All @@ -14,7 +13,6 @@ lib/
lib64/
bin/
include/
*.spec
pyvenv.cfg
Scripts/
Lib/
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"search.exclude": {
"**/node_modules": false
}
}
974 changes: 974 additions & 0 deletions Log

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![EEG2BIDS Wizard](wiki/images/logo/EEG2bIDS_Wizard_(converter_tool).jpg)
![SET2BIDS Wizard](wiki/images/logo/EEG2bIDS_Wizard_(converter_tool).jpg)

EEG2BIDS Wizard is a GUI interface for iEEG to BIDS format and used with LORIS (Longitudinal Online Research and Imaging System). Users can use their LORIS credentials with a LORIS URL and automatically retrieve LORIS data for the EEG to BIDS format. Becareful to remove your login credentials after using EEG2BIDS on a shared computer!
SET2BIDS Wizard is a GUI interface for iEEG to BIDS format and used with LORIS (Longitudinal Online Research and Imaging System). Users can use their LORIS credentials with a LORIS URL and automatically retrieve LORIS data for the EEG to BIDS format. Becareful to remove your login credentials after using SET2BIDS on a shared computer!

## Installation

Expand Down
3 changes: 3 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TODO
// Clean parameters in socketContext.emit('eeg_to_bids') (Converter)
// API next stage + create visit: config option (endpoint may not exist)
7 changes: 5 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\Scripts\activate
pyinstaller --paths=python python/eeg2bids.py -F `
--name eeg2bids-service-windows `
pyinstaller --paths=python python/set2bids.py -D `
--name set2bids-service-windows `
--add-data 'python/libs/bids_validator/rules/top_level_rules.json;./bids_validator/rules' `
--add-data 'python/libs/bids_validator/rules/associated_data_rules.json;./bids_validator/rules' `
--add-data 'python/libs/bids_validator/rules/file_level_rules.json;./bids_validator/rules' `
Expand Down Expand Up @@ -34,6 +34,9 @@ pyinstaller --paths=python python/eeg2bids.py -F `
--add-data 'python/libs/mne/channels/data/montages/standard_postfixed.elc;./mne/channels/data/montages' `
--add-data 'python/libs/mne/channels/data/montages/standard_prefixed.elc;./mne/channels/data/montages' `
--add-data 'python/libs/mne/channels/data/montages/standard_primed.elc;./mne/channels/data/montages' `
--add-data 'Lib/site-packages/mne;mne' `
--add-data 'Lib/site-packages/mne_bids;mne_bids' `
--add-data 'src/config.json;src' `
--hidden-import=eventlet.hubs.epolls `
--hidden-import=eventlet.hubs.kqueue `
--hidden-import=eventlet.hubs.selects `
Expand Down
12 changes: 7 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
source bin/activate
pyinstaller --paths=python python/eeg2bids.py -w -F \
--name eeg2bids-service \
source python/bin/activate
pyi-makespec --paths=python python/set2bids.py -w -D \
--name set2bids-service \
--add-data 'python/libs/bids_validator/rules/top_level_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/rules/associated_data_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/rules/file_level_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/rules/phenotypic_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/rules/session_level_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/rules/subject_level_rules.json:bids_validator/rules' \
--add-data 'python/libs/bids_validator/tsv/non_custom_columns.json:bids_validator/tsv' \
--add-data 'python/lib/python3.8/site-packages/mne/:mne' \
--add-data 'python/lib/python3.8/site-packages/mne_bids/:mne_bids' \
--add-data 'src/config.json/:src' \
--hidden-import=eventlet.hubs.epolls \
--hidden-import=eventlet.hubs.kqueue \
--hidden-import=eventlet.hubs.selects \
Expand All @@ -17,5 +20,4 @@ pyinstaller --paths=python python/eeg2bids.py -w -F \
--hidden-import=dns.version --hidden-import=dns.zone \
--hidden-import=engineio.async_drivers.eventlet \
--hidden-import=json \
--hidden-import=csv \
--clean
--hidden-import=csv
15 changes: 15 additions & 0 deletions import-mne.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import mne
import os
from mne_bids import write_raw_bids, BIDSPath

print(mne.sys_info())
file = r'C:\Users\Lae\Documents\test_data\DCC0003_444597_V01_FACE.set'
bids_directory = r'C:\Users\Lae\Documents\test_data'
raw = mne.io.read_raw_eeglab(input_fname=file, preload=False, verbose=True)

os.makedirs(bids_directory + os.path.sep, exist_ok=True)
bids_directory = bids_directory + os.path.sep
bids_root = bids_directory
bids_basename = BIDSPath(subject='001', task='test', root=bids_root, acquisition='eeg', run=None)
bids_basename.update(session='V1')
write_raw_bids(raw, bids_basename, allow_preload=False, overwrite=False, verbose=True)
Loading