|
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "cell_type": "code", |
31 | | - "execution_count": 1, |
| 31 | + "execution_count": null, |
32 | 32 | "id": "95dccf85-2fb3-4791-b0c9-cf71aecd369e", |
33 | 33 | "metadata": {}, |
34 | 34 | "outputs": [], |
|
39 | 39 | "mne.set_log_level('error') # reduce extraneous MNE output\n", |
40 | 40 | "import matplotlib.pyplot as plt\n", |
41 | 41 | "import numpy as np\n", |
42 | | - "import glob" |
| 42 | + "import glob\n", |
| 43 | + "from scipy import stats\n", |
| 44 | + "from mne.stats import spatio_temporal_cluster_1samp_test\n", |
| 45 | + "from mne.channels import find_ch_adjacency, make_1020_channel_selections" |
43 | 46 | ] |
44 | 47 | }, |
45 | 48 | { |
|
194 | 197 | }, |
195 | 198 | { |
196 | 199 | "cell_type": "code", |
197 | | - "execution_count": 6, |
| 200 | + "execution_count": null, |
198 | 201 | "id": "ea8c6e1a-f94e-4509-ad57-814dbbc10e81", |
199 | 202 | "metadata": {}, |
200 | 203 | "outputs": [ |
|
207 | 210 | } |
208 | 211 | ], |
209 | 212 | "source": [ |
210 | | - "from scipy import stats \n", |
211 | | - "\n", |
212 | 213 | "t, pval = stats.ttest_1samp(y, 0)\n", |
213 | 214 | "print('Difference t = ', str(round(t[0], 2)), 'p = ', str(round(pval[0], 4)))" |
214 | 215 | ] |
215 | 216 | }, |
216 | | - { |
217 | | - "cell_type": "code", |
218 | | - "execution_count": null, |
219 | | - "id": "b6b9e108", |
220 | | - "metadata": {}, |
221 | | - "outputs": [], |
222 | | - "source": [] |
223 | | - }, |
224 | 217 | { |
225 | 218 | "cell_type": "markdown", |
226 | 219 | "id": "3d30a92c", |
|
286 | 279 | "source": [ |
287 | 280 | "#### Prepare the Data for Mass Univariate Analysis\n", |
288 | 281 | "\n", |
289 | | - "MNE provides a `spatio_temporal_cluster_1samp_test()` function which we import here. " |
290 | | - ] |
291 | | - }, |
292 | | - { |
293 | | - "cell_type": "code", |
294 | | - "execution_count": 7, |
295 | | - "id": "6fd14f1b-83a7-445c-a7eb-2c50891e3ecc", |
296 | | - "metadata": {}, |
297 | | - "outputs": [], |
298 | | - "source": [ |
299 | | - "from mne.stats import spatio_temporal_cluster_1samp_test" |
| 282 | + "MNE provides a `spatio_temporal_cluster_1samp_test()` function which we imported above using\n", |
| 283 | + "```from mne.stats import spatio_temporal_cluster_1samp_test```." |
300 | 284 | ] |
301 | 285 | }, |
302 | 286 | { |
|
454 | 438 | }, |
455 | 439 | { |
456 | 440 | "cell_type": "code", |
457 | | - "execution_count": 12, |
| 441 | + "execution_count": null, |
458 | 442 | "id": "5e963988", |
459 | 443 | "metadata": {}, |
460 | 444 | "outputs": [ |
|
480 | 464 | } |
481 | 465 | ], |
482 | 466 | "source": [ |
483 | | - "from mne.channels import find_ch_adjacency, make_1020_channel_selections\n", |
484 | | - "\n", |
485 | 467 | "# Create ROIs by checking channel labels\n", |
486 | 468 | "selections = make_1020_channel_selections(diff_waves[0].info, midline=\"12z\")\n", |
487 | 469 | "time_unit = dict(time_unit=\"s\")\n", |
|
0 commit comments