{ "cells": [ { "cell_type": "markdown", "id": "e59edc53-073e-4d94-9599-01b613ef2201", "metadata": {}, "source": [ "# Utils" ] }, { "cell_type": "markdown", "id": "c80a4d05-68fa-4100-9ca2-ad4575c5f6a5", "metadata": {}, "source": [ "## Best montage\n", "The function ´get_best_montage´ return a list with all compatible MNE montages." ] }, { "cell_type": "code", "execution_count": 10, "id": "40d7f7f2-4992-4f67-beaa-633a1f0e08ff", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
countmissingsmissings channelsmontage
0640[]standard_1020
1640[]standard_1005
2622[T10, T9]easycap-M1
3622[T10, T9]biosemi64
43628[Af8, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cpz, T8...standard_prefixed
53232[Af8, Poz, P2, Fc3, Cp3, Fcz, Cpz, Cp4, C2, C1...biosemi32
63034[Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp...standard_primed
73034[Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp...standard_postfixed
82935[Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp...standard_alphabetic
91648[Af8, Poz, P2, Fc3, P7, Fc1, Cp5, Cp3, Fcz, Cp...biosemi16
101450[Af8, Oz, Poz, P2, Fc3, P7, Fc1, Cp5, Cp3, Fcz...biosemi256
11658[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...biosemi128
12658[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...biosemi160
13163[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-257
14163[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-32
15163[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-65_1.0
16163[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-129
17064[Oz, P2, F4, Fc1, Cp5, T7, F3, P4, P3, P6, Afz...artinis-octamon
18064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...EGI_256
19064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...mgh70
20064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...mgh60
21064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...easycap-M10
22064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-128
23064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-64_1.0
24064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...GSN-HydroCel-256
25064[Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,...artinis-brite23
\n", "
" ], "text/plain": [ " count missings missings channels \\\n", "0 64 0 [] \n", "1 64 0 [] \n", "2 62 2 [T10, T9] \n", "3 62 2 [T10, T9] \n", "4 36 28 [Af8, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cpz, T8... \n", "5 32 32 [Af8, Poz, P2, Fc3, Cp3, Fcz, Cpz, Cp4, C2, C1... \n", "6 30 34 [Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp... \n", "7 30 34 [Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp... \n", "8 29 35 [Af8, Poz, Fc3, P7, Fc1, Cp5, Cp3, Fcz, T7, Cp... \n", "9 16 48 [Af8, Poz, P2, Fc3, P7, Fc1, Cp5, Cp3, Fcz, Cp... \n", "10 14 50 [Af8, Oz, Poz, P2, Fc3, P7, Fc1, Cp5, Cp3, Fcz... \n", "11 6 58 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "12 6 58 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "13 1 63 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "14 1 63 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "15 1 63 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "16 1 63 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "17 0 64 [Oz, P2, F4, Fc1, Cp5, T7, F3, P4, P3, P6, Afz... \n", "18 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "19 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "20 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "21 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "22 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "23 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "24 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "25 0 64 [Af8, Oz, Poz, P2, F4, Fc3, P7, Fc1, Cp5, Cp3,... \n", "\n", " montage \n", "0 standard_1020 \n", "1 standard_1005 \n", "2 easycap-M1 \n", "3 biosemi64 \n", "4 standard_prefixed \n", "5 biosemi32 \n", "6 standard_primed \n", "7 standard_postfixed \n", "8 standard_alphabetic \n", "9 biosemi16 \n", "10 biosemi256 \n", "11 biosemi128 \n", "12 biosemi160 \n", "13 GSN-HydroCel-257 \n", "14 GSN-HydroCel-32 \n", "15 GSN-HydroCel-65_1.0 \n", "16 GSN-HydroCel-129 \n", "17 artinis-octamon \n", "18 EGI_256 \n", "19 mgh70 \n", "20 mgh60 \n", "21 easycap-M10 \n", "22 GSN-HydroCel-128 \n", "23 GSN-HydroCel-64_1.0 \n", "24 GSN-HydroCel-256 \n", "25 artinis-brite23 " ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from gcpds.utils.mne_handler import get_best_montage\n", "\n", "names = ['fC5', 'Fc3', 'Fc1', 'Fcz', 'Fc2', 'Fc4', 'Fc6', 'C5', 'C3', 'C1', 'Cz', 'C2', 'C4', 'C6', 'Cp5', 'Cp3', 'Cp1', 'Cpz', 'Cp2', 'Cp4', 'Cp6', 'Fp1', 'Fpz', 'Fp2', 'Af7', 'Af3', 'Afz', 'Af4', 'Af8', 'F7', 'F5', 'F3', 'F1', 'Fz', 'F2', 'F4', 'F6', 'F8', 'Ft7', 'Ft8', 'T7', 'T8', 'T9', 'T10', 'Tp7', 'Tp8', 'P7', 'P5', 'P3', 'P1', 'Pz', 'P2', 'P4', 'P6', 'P8', 'Po7', 'Po3', 'Poz', 'Po4', 'Po8', 'O1', 'Oz', 'O2', 'Iz']\n", "get_best_montage(names)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.6" } }, "nbformat": 4, "nbformat_minor": 5 }