Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
d922b53
Creation of the pre-processing description file. Needs sampling frequ…
penelopepellandg May 24, 2020
b0a86f9
Moved branch for 1st version of the code
penelopepg May 24, 2020
3edeeaa
script for functions for pre_processing
beapdk May 25, 2020
6c03341
pre_processing_analysis
beapdk May 25, 2020
789acfc
Additional data wrangling
beapdk May 25, 2020
3d83288
Line 42 switch "/" to "\\" if on windows
penelopepg May 26, 2020
c6e6f00
Updated README + added vars description
penelopepg May 26, 2020
f89f9f6
Moved old script into "Old_version" to keep traces of work done
penelopepellandg May 26, 2020
c250c64
Moved to Old_versions folder
penelopepg May 26, 2020
d0a84af
removed typos
penelopepg May 26, 2020
4c24d1f
descriptive stats and dtypes convert
beapdk May 26, 2020
d98fac7
descriptive stats by gender + corr matrices
beapdk May 26, 2020
c90597b
changes to function (reduce df)
beapdk May 26, 2020
9e4b48f
1st draft of analysis including t-tests. NOT FINAL
penelopepellandg May 27, 2020
045dcae
Cleaned t-tests code, not final
penelopepellandg May 27, 2020
3a843ac
Rename t-test.ipynb to Old_versions/t-test.ipynb
beapdk May 27, 2020
a018e51
methods addition
beapdk May 27, 2020
c743fc3
removal because placed in readme file
beapdk May 27, 2020
55beba0
Add files via upload
beapdk May 27, 2020
c7b3cd9
move old pre_process_script
beapdk May 27, 2020
cf803fa
uptaded to for formatting arrays(SNF)
beapdk May 27, 2020
932ff2a
Beggining of SNF. EEG array shape needs to be adapted.
penelopepellandg May 28, 2020
48b5997
Modified eeg dataframe to fit needed numpy array shape
penelopepellandg May 28, 2020
7cfeebf
removal of 617
beapdk May 28, 2020
61ac7ac
gender added
beapdk May 28, 2020
5aaecf2
Visualization script (descriptive stats + normal distributions)
penelopepellandg May 28, 2020
3ad621a
rectified errors with df and some adjustments
beapdk May 28, 2020
cceae56
light adjustments
beapdk May 28, 2020
3b3f2ce
Added more graphics for eeg data + draft of topographic maps (to be r…
penelopepellandg May 29, 2020
a619df0
image for readme
penelopepellandg May 29, 2020
b459d21
added image
penelopepg May 29, 2020
180710c
added details to sumary
penelopepg May 29, 2020
13fdb1f
Added progress overview
penelopepg May 29, 2020
b43bb7f
arrays working
beapdk May 29, 2020
fe8c8d1
arrays working
beapdk May 29, 2020
d78f51a
je valide
beapdk May 29, 2020
c01b317
Added correlation matrices in Viz.ipynb.
penelopepellandg May 29, 2020
5a4efab
index correction
beapdk May 29, 2020
e00a0a3
index adjustment
beapdk May 29, 2020
5a6b5a0
Merge
beapdk May 29, 2020
ffcd8b1
added source link for image
penelopepg May 29, 2020
3784df7
Merge branch 'Project_branch' of https://github.com/brainhack-school2…
beapdk May 29, 2020
dd4f482
first try at SNF
beapdk May 29, 2020
cec69f2
Added correlation matrices to viz
penelopepg May 29, 2020
8af654e
subtype classification added
beapdk May 30, 2020
fa200cb
function for classification
beapdk May 30, 2020
d8c3669
Changed subtypes category names to numbers.
penelopepellandg May 31, 2020
902c426
Added channel coordinates for topoplot
penelopepellandg May 31, 2020
cb4bdd2
labels added to array
beapdk May 31, 2020
6cc6c00
small changes to outputs df
beapdk May 31, 2020
b9d18dc
added labels to array
beapdk May 31, 2020
6ac9b88
SNF set and functioning
beapdk May 31, 2020
ff59272
ajustement pour snf
beapdk May 31, 2020
4b57641
arrange format
beapdk Jun 1, 2020
fd8c33c
added a correlation matric, some regressions and some 3d interactive …
penelopepellandg Jun 2, 2020
6077f64
New version of the README which presents clustering and PCA instead o…
penelopepellandg Jun 2, 2020
29bcc17
added wilcoxon tests (non parametric alternative to student)
penelopepellandg Jun 2, 2020
8ab0260
Previous commit was wrong version, now updated
penelopepellandg Jun 2, 2020
7d6020d
Functionnal topoplots. Need p-values
penelopepellandg Jun 2, 2020
80e850e
Added kruskal-wallis test to eeg data (differences in fft absolute po…
penelopepellandg Jun 2, 2020
e625049
remove old readme in order to update to new version (without SNF)
penelopepellandg Jun 2, 2020
67aeefe
Added gendered topomaps and their associated Kruskal-wallis tests
penelopepellandg Jun 3, 2020
f3a5183
Removed superfluous graphs
penelopepellandg Jun 3, 2020
20a1510
Not needed anymore as analysis are no longer networks
penelopepg Jun 3, 2020
e357d9e
1st version of slideshow + updated Viz
penelopepg Jun 3, 2020
068ce0f
title change
beapdk Jun 3, 2020
18a22c1
Organized + table of content + scalp differences
penelopepg Jun 3, 2020
5d06d7e
added pool function
beapdk Jun 4, 2020
2f72b59
addition of all final analyses
beapdk Jun 4, 2020
ba8fdb9
1st version of slides
penelopepg Jun 4, 2020
f2aa84b
New version uploaded
penelopepg Jun 4, 2020
e0fc799
added new wavebands to all existing eeg graphs
penelopepg Jun 4, 2020
58a306f
Notebook containing topomaps
penelopepg Jun 4, 2020
35da47a
cleaning
beapdk Jun 4, 2020
91d4417
new .py and total cleaning of data_exploration
beapdk Jun 5, 2020
da70682
Delete TEST PCA.ipynb
beapdk Jun 5, 2020
ecbe7bb
wrong loading
beapdk Jun 5, 2020
592edc1
Delete JNB.zip
beapdk Jun 5, 2020
7ae68eb
wrong load
beapdk Jun 5, 2020
748d90a
Delete Viz_slideshow.slides.html
beapdk Jun 5, 2020
3531276
Delete df_Delta
beapdk Jun 5, 2020
8a1440e
Delete df_analysis
beapdk Jun 5, 2020
0349d60
Delete df_behavioral
beapdk Jun 5, 2020
dfe0003
Delete df_connors
beapdk Jun 5, 2020
59c031f
Delete df_eeg
beapdk Jun 5, 2020
aadb093
Delete labels
beapdk Jun 5, 2020
745f307
Delete adhd-alien.jpg
beapdk Jun 5, 2020
987854d
Delete adhd-alien.png
beapdk Jun 5, 2020
6c3cea3
Delete adhd.jpg
beapdk Jun 5, 2020
6a18cd4
Delete adhd.png
beapdk Jun 5, 2020
656b02f
Delete differences.jpeg
beapdk Jun 5, 2020
326d0b6
Delete differences.png
beapdk Jun 5, 2020
ab03700
Delete Neuropsy.xlsx
beapdk Jun 5, 2020
ce1fa2d
Interactive plots deliverable #1
penelopepellandg Jun 6, 2020
05003b8
Interactive plots deliverable; contains all needed plots.
penelopepellandg Jun 6, 2020
94a1805
ddMerge branch 'Project_branch' of https://github.com/brainhack-schoo…
beapdk Jun 8, 2020
062e9ac
up to date for deliverable
beapdk Jun 8, 2020
7e8fd09
Scalp Plots + notebook to compute their p-vals
penelopepg Jun 8, 2020
70478dc
cleaned code a little bit, still needs to be put into functions
penelopepellandg Jun 9, 2020
6f23aa6
added 2 functions for data wrangling and 1 function for Mann-Whitney …
penelopepellandg Jun 10, 2020
0dd122a
Viz cleaned/reorganized, still needs cleaning + functions
penelopepellandg Jun 10, 2020
879021b
new functions and modifications
beapdk Jun 10, 2020
c92029b
added functions
beapdk Jun 10, 2020
f941725
cleaning done !
beapdk Jun 10, 2020
762d82a
new functions'
beapdk Jun 10, 2020
b8f15e3
added functions
beapdk Jun 10, 2020
40a235d
labels
beapdk Jun 10, 2020
d0f0425
modifs for data csv
beapdk Jun 10, 2020
50709a0
up to date
beapdk Jun 10, 2020
9745cd6
updating from master
beapdk Jun 10, 2020
03a41a2
updating from master
beapdk Jun 10, 2020
c2bf27b
addition of files
beapdk Jun 10, 2020
77c0f0b
Added functions for eeg topomaps
penelopepellandg Jun 10, 2020
8388c92
Made all topomaps code into functions
penelopepellandg Jun 10, 2020
096de31
New version was committed as a different file
penelopepg Jun 10, 2020
031eec3
New file was uploaded with upgrades & a different name
penelopepg Jun 10, 2020
9d96d41
Cleaned Viz
penelopepg Jun 11, 2020
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
4,311 changes: 4,311 additions & 0 deletions .ipynb_checkpoints/Interactive_plots_deliverable-checkpoint.ipynb

Large diffs are not rendered by default.

1,334 changes: 1,334 additions & 0 deletions .ipynb_checkpoints/SNF-checkpoint.ipynb

Large diffs are not rendered by default.

1,106 changes: 1,106 additions & 0 deletions .ipynb_checkpoints/SNF_TEST-checkpoint.ipynb

Large diffs are not rendered by default.

1,107 changes: 1,107 additions & 0 deletions .ipynb_checkpoints/SNF_updated-checkpoint.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .ipynb_checkpoints/TEST PCA-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
607,318 changes: 607,318 additions & 0 deletions .ipynb_checkpoints/Viz-checkpoint.ipynb

Large diffs are not rendered by default.

638,075 changes: 638,075 additions & 0 deletions .ipynb_checkpoints/Viz-slides-checkpoint.ipynb

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions .ipynb_checkpoints/create data frames for viz-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2020-06-04T16:55:28.761296Z",
"start_time": "2020-06-04T16:55:28.546730Z"
}
},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"ExecuteTime": {
"end_time": "2020-06-04T16:57:35.037958Z",
"start_time": "2020-06-04T16:57:34.980862Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>id</th>\n",
" <th>Gender</th>\n",
" <th>subtype</th>\n",
" <th>adhdtype</th>\n",
" <th>brain_oscillation</th>\n",
" <th>electrode</th>\n",
" <th>fft_abs_power</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>mixed</td>\n",
" <td>2</td>\n",
" <td>Delta</td>\n",
" <td>FP1</td>\n",
" <td>15.376173</td>\n",
" </tr>\n",
" <tr>\n",
" <th>133</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>mixed</td>\n",
" <td>2</td>\n",
" <td>Beta2</td>\n",
" <td>Pz</td>\n",
" <td>1.870920</td>\n",
" </tr>\n",
" <tr>\n",
" <th>134</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>mixed</td>\n",
" <td>2</td>\n",
" <td>Beta2</td>\n",
" <td>P3</td>\n",
" <td>1.690150</td>\n",
" </tr>\n",
" <tr>\n",
" <th>135</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>mixed</td>\n",
" <td>2</td>\n",
" <td>Beta2</td>\n",
" <td>T5</td>\n",
" <td>1.138450</td>\n",
" </tr>\n",
" <tr>\n",
" <th>136</th>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>mixed</td>\n",
" <td>2</td>\n",
" <td>Beta2</td>\n",
" <td>T4</td>\n",
" <td>2.171898</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15958</th>\n",
" <td>702</td>\n",
" <td>1</td>\n",
" <td>inat</td>\n",
" <td>1</td>\n",
" <td>Theta</td>\n",
" <td>Fz</td>\n",
" <td>15.355240</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15959</th>\n",
" <td>702</td>\n",
" <td>1</td>\n",
" <td>inat</td>\n",
" <td>1</td>\n",
" <td>Alpha</td>\n",
" <td>P3</td>\n",
" <td>26.927847</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15960</th>\n",
" <td>702</td>\n",
" <td>1</td>\n",
" <td>inat</td>\n",
" <td>1</td>\n",
" <td>Theta</td>\n",
" <td>F4</td>\n",
" <td>12.414647</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15935</th>\n",
" <td>702</td>\n",
" <td>1</td>\n",
" <td>inat</td>\n",
" <td>1</td>\n",
" <td>Theta</td>\n",
" <td>F3</td>\n",
" <td>12.058871</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16092</th>\n",
" <td>702</td>\n",
" <td>1</td>\n",
" <td>inat</td>\n",
" <td>1</td>\n",
" <td>Alpha2</td>\n",
" <td>F3</td>\n",
" <td>7.689915</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>20064 rows × 7 columns</p>\n",
"</div>"
],
"text/plain": [
" id Gender subtype adhdtype brain_oscillation electrode \\\n",
"0 1 1 mixed 2 Delta FP1 \n",
"133 1 1 mixed 2 Beta2 Pz \n",
"134 1 1 mixed 2 Beta2 P3 \n",
"135 1 1 mixed 2 Beta2 T5 \n",
"136 1 1 mixed 2 Beta2 T4 \n",
"... ... ... ... ... ... ... \n",
"15958 702 1 inat 1 Theta Fz \n",
"15959 702 1 inat 1 Alpha P3 \n",
"15960 702 1 inat 1 Theta F4 \n",
"15935 702 1 inat 1 Theta F3 \n",
"16092 702 1 inat 1 Alpha2 F3 \n",
"\n",
" fft_abs_power \n",
"0 15.376173 \n",
"133 1.870920 \n",
"134 1.690150 \n",
"135 1.138450 \n",
"136 2.171898 \n",
"... ... \n",
"15958 15.355240 \n",
"15959 26.927847 \n",
"15960 12.414647 \n",
"15935 12.058871 \n",
"16092 7.689915 \n",
"\n",
"[20064 rows x 7 columns]"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_analysis = pd.read_csv('Data/df_analysis', index_col=[0])\n",
"df_analysis = df_analysis[['id', 'Gender', 'subtype', 'adhdtype', 'brain_oscillation', 'electrode', 'fft_abs_power']]\n",
"df_analysis"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"ExecuteTime": {
"end_time": "2020-06-04T17:02:53.663898Z",
"start_time": "2020-06-04T17:02:53.631124Z"
}
},
"outputs": [],
"source": [
"df_Delta = df_analysis.loc[df_analysis['brain_oscillation'] == 'Delta']\n",
"df_Theta = df_analysis.loc[df_analysis['brain_oscillation'] == 'Theta']\n",
"df_Alpha = df_analysis.loc[df_analysis['brain_oscillation'] == 'Alpha']\n",
"df_Alpha1 = df_analysis.loc[df_analysis['brain_oscillation'] == 'Alpha1']\n",
"df_Alpha2 = df_analysis.loc[df_analysis['brain_oscillation'] == 'Alpha2']\n",
"df_Beta = df_analysis.loc[df_analysis['brain_oscillation'] == 'Beta']\n",
"df_Beta1 = df_analysis.loc[df_analysis['brain_oscillation'] == 'Beta1']\n",
"df_Beta2 = df_analysis.loc[df_analysis['brain_oscillation'] == 'Beta2']"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"ExecuteTime": {
"end_time": "2020-06-04T17:03:30.319250Z",
"start_time": "2020-06-04T17:03:30.247119Z"
}
},
"outputs": [],
"source": [
"df_Delta.to_csv('Data/df_Delta')\n",
"df_Theta.to_csv('Data/df_Theta')\n",
"df_Alpha.to_csv('Data/df_Alpha')\n",
"df_Alpha1.to_csv('Data/df_Alpha1')\n",
"df_Alpha2.to_csv('Data/df_Alpha2')\n",
"df_Beta.to_csv('Data/df_Beta')\n",
"df_Beta1.to_csv('Data/df_Beta1')\n",
"df_Beta2.to_csv('Data/df_Beta2')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.7.7"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading