This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import mne | |
import pandas as pd | |
from pathlib import Path | |
root = Path("/home/oreillyc/projects/def-emayada/eegip/washington/derivatives/lossless/") | |
results = {"subjects": [], | |
"ages": []} | |
for age in ["06", "12", "18"]: | |
for path in root.glob(f"sub-s*/ses-m{age}/eeg/sub-s*_ses-m{age}_*_eeg_qcr.set"): | |
print(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import mne | |
import pandas as pd | |
from pathlib import Path | |
root = Path("/home/oreillyc/projects/def-emayada/eegip/london/derivatives/lossless/") | |
results = {"subjects": [], | |
"ages": []} | |
for age in ["06", "12"]: | |
for path in root.glob(f"sub-s*/ses-m{age}/eeg/sub-s*_ses-m{age}_eeg_qcr.set"): | |
print(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nibabel.freesurfer.io import read_geometry, write_geometry | |
import numpy as np | |
from pathlib import Path | |
import nibabel as nib | |
import sys | |
from scipy import spatial | |
import pandas as pd | |
from tqdm.notebook import tqdm | |
from mne.bem import make_watershed_bem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nibabel.freesurfer.io import read_geometry, write_geometry | |
from pathlib import Path | |
from copy import deepcopy | |
from skimage import measure | |
import os | |
import trimesh | |
import pymeshfix | |
import cc3d | |
import nibabel as nib |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", |