Note

Click here to download the full example code

# Morph volumetric source estimate¶

This example demonstrates how to morph an individual subject’s
`mne.VolSourceEstimate`

to a common reference space. We achieve this
using `mne.SourceMorph`

. Pre-computed data will be morphed based on
an affine transformation and a nonlinear registration method
known as Symmetric Diffeomorphic Registration (SDR) by
1.

Transformation is estimated from the subject’s anatomical T1 weighted MRI (brain) to FreeSurfer’s ‘fsaverage’ T1 weighted MRI (brain).

Afterwards the transformation will be applied to the volumetric source estimate. The result will be plotted, showing the fsaverage T1 weighted anatomical MRI, overlaid with the morphed volumetric source estimate.

```
# Author: Tommy Clausner <tommy.clausner@gmail.com>
#
# License: BSD (3-clause)
import os
import nibabel as nib
import mne
from mne.datasets import sample, fetch_fsaverage
from mne.minimum_norm import apply_inverse, read_inverse_operator
from nilearn.plotting import plot_glass_brain
print(__doc__)
```

Setup paths

```
sample_dir_raw = sample.data_path()
sample_dir = os.path.join(sample_dir_raw, 'MEG', 'sample')
subjects_dir = os.path.join(sample_dir_raw, 'subjects')
fname_evoked = os.path.join(sample_dir, 'sample_audvis-ave.fif')
fname_inv = os.path.join(sample_dir, 'sample_audvis-meg-vol-7-meg-inv.fif')
fname_t1_fsaverage = os.path.join(subjects_dir, 'fsaverage', 'mri',
'brain.mgz')
fetch_fsaverage(subjects_dir) # ensure fsaverage src exists
fname_src_fsaverage = subjects_dir + '/fsaverage/bem/fsaverage-vol-5-src.fif'
```

Out:

```
10 files missing from /home/circleci/project/mne/datasets/_fsaverage/root.txt in /home/circleci/mne_data/MNE-sample-data/subjects
Downloading missing files remotely
Downloading https://files.osf.io/v1/resources/rxvq7/providers/osfstorage/5cbdba4ef2be3c0019091890?revision=2&action=download&direct&version=2 (186.7 MB)
0%| | Downloading : 0.00/187M [00:00<?, ?B/s]
0%| | Downloading : 312k/187M [00:00<00:10, 19.3MB/s]
1%| | Downloading : 1.55M/187M [00:00<00:09, 19.7MB/s]
1%|1 | Downloading : 2.05M/187M [00:00<00:09, 20.0MB/s]
1%|1 | Downloading : 2.55M/187M [00:00<00:09, 20.3MB/s]
2%|1 | Downloading : 3.05M/187M [00:00<00:09, 20.5MB/s]
2%|1 | Downloading : 3.55M/187M [00:00<00:09, 20.5MB/s]
2%|2 | Downloading : 4.05M/187M [00:00<00:09, 20.9MB/s]
2%|2 | Downloading : 4.55M/187M [00:00<00:09, 21.0MB/s]
3%|2 | Downloading : 5.05M/187M [00:00<00:08, 21.2MB/s]
3%|2 | Downloading : 5.55M/187M [00:00<00:08, 21.3MB/s]
3%|3 | Downloading : 6.05M/187M [00:00<00:08, 21.2MB/s]
4%|3 | Downloading : 6.55M/187M [00:00<00:08, 21.5MB/s]
4%|3 | Downloading : 7.05M/187M [00:00<00:08, 21.8MB/s]
4%|4 | Downloading : 7.55M/187M [00:00<00:08, 21.9MB/s]
4%|4 | Downloading : 8.05M/187M [00:00<00:08, 22.1MB/s]
5%|4 | Downloading : 8.55M/187M [00:00<00:08, 21.9MB/s]
5%|4 | Downloading : 9.05M/187M [00:00<00:08, 21.7MB/s]
5%|5 | Downloading : 10.1M/187M [00:00<00:08, 22.0MB/s]
6%|5 | Downloading : 10.6M/187M [00:00<00:08, 22.0MB/s]
6%|5 | Downloading : 11.1M/187M [00:00<00:08, 21.8MB/s]
6%|6 | Downloading : 11.6M/187M [00:00<00:08, 21.8MB/s]
7%|6 | Downloading : 13.1M/187M [00:00<00:08, 22.1MB/s]
8%|7 | Downloading : 14.1M/187M [00:00<00:08, 22.3MB/s]
8%|8 | Downloading : 15.1M/187M [00:00<00:07, 22.5MB/s]
9%|8 | Downloading : 16.1M/187M [00:00<00:07, 22.6MB/s]
9%|9 | Downloading : 17.1M/187M [00:00<00:07, 22.7MB/s]
10%|9 | Downloading : 18.1M/187M [00:00<00:07, 22.8MB/s]
10%|# | Downloading : 19.1M/187M [00:00<00:07, 22.9MB/s]
11%|# | Downloading : 20.1M/187M [00:00<00:07, 23.1MB/s]
11%|#1 | Downloading : 21.1M/187M [00:00<00:07, 23.2MB/s]
12%|#1 | Downloading : 22.1M/187M [00:00<00:07, 23.2MB/s]
12%|#2 | Downloading : 23.1M/187M [00:00<00:07, 23.3MB/s]
13%|#2 | Downloading : 24.1M/187M [00:00<00:07, 23.4MB/s]
13%|#3 | Downloading : 25.1M/187M [00:01<00:07, 23.3MB/s]
14%|#3 | Downloading : 26.1M/187M [00:01<00:07, 23.5MB/s]
14%|#4 | Downloading : 27.1M/187M [00:01<00:07, 23.7MB/s]
15%|#5 | Downloading : 28.1M/187M [00:01<00:07, 23.3MB/s]
16%|#5 | Downloading : 29.1M/187M [00:01<00:06, 23.6MB/s]
16%|#6 | Downloading : 30.1M/187M [00:01<00:06, 23.7MB/s]
17%|#6 | Downloading : 31.1M/187M [00:01<00:06, 23.9MB/s]
17%|#7 | Downloading : 32.1M/187M [00:01<00:06, 23.6MB/s]
18%|#7 | Downloading : 33.1M/187M [00:01<00:06, 24.1MB/s]
18%|#8 | Downloading : 34.1M/187M [00:01<00:06, 24.1MB/s]
19%|#8 | Downloading : 35.1M/187M [00:01<00:06, 24.2MB/s]
19%|#9 | Downloading : 36.1M/187M [00:01<00:06, 24.3MB/s]
20%|#9 | Downloading : 37.1M/187M [00:01<00:06, 24.3MB/s]
20%|## | Downloading : 38.1M/187M [00:01<00:06, 24.4MB/s]
21%|## | Downloading : 39.1M/187M [00:01<00:06, 24.2MB/s]
21%|##1 | Downloading : 40.1M/187M [00:01<00:06, 24.0MB/s]
22%|##1 | Downloading : 41.1M/187M [00:01<00:06, 24.2MB/s]
23%|##2 | Downloading : 42.1M/187M [00:01<00:06, 24.4MB/s]
23%|##3 | Downloading : 43.1M/187M [00:01<00:06, 24.5MB/s]
24%|##3 | Downloading : 44.1M/187M [00:01<00:06, 24.6MB/s]
24%|##4 | Downloading : 45.1M/187M [00:01<00:06, 24.5MB/s]
25%|##4 | Downloading : 46.1M/187M [00:01<00:06, 24.4MB/s]
25%|##5 | Downloading : 47.1M/187M [00:01<00:05, 24.7MB/s]
26%|##5 | Downloading : 48.1M/187M [00:01<00:05, 24.7MB/s]
26%|##6 | Downloading : 49.1M/187M [00:02<00:05, 24.8MB/s]
27%|##6 | Downloading : 50.1M/187M [00:02<00:05, 24.8MB/s]
27%|##7 | Downloading : 51.1M/187M [00:02<00:05, 24.8MB/s]
28%|##7 | Downloading : 52.1M/187M [00:02<00:05, 24.8MB/s]
28%|##8 | Downloading : 53.1M/187M [00:02<00:05, 24.7MB/s]
29%|##8 | Downloading : 54.1M/187M [00:02<00:05, 24.9MB/s]
29%|##9 | Downloading : 55.1M/187M [00:02<00:05, 24.9MB/s]
30%|### | Downloading : 56.1M/187M [00:02<00:05, 24.9MB/s]
31%|### | Downloading : 57.1M/187M [00:02<00:05, 25.0MB/s]
31%|###1 | Downloading : 58.1M/187M [00:02<00:05, 24.9MB/s]
32%|###1 | Downloading : 59.1M/187M [00:02<00:05, 25.0MB/s]
32%|###2 | Downloading : 60.1M/187M [00:02<00:05, 25.0MB/s]
33%|###2 | Downloading : 61.1M/187M [00:02<00:05, 25.0MB/s]
33%|###3 | Downloading : 62.1M/187M [00:02<00:05, 25.1MB/s]
34%|###3 | Downloading : 63.1M/187M [00:02<00:05, 25.1MB/s]
34%|###4 | Downloading : 64.1M/187M [00:02<00:05, 25.1MB/s]
35%|###4 | Downloading : 65.1M/187M [00:02<00:05, 25.0MB/s]
35%|###5 | Downloading : 66.1M/187M [00:02<00:05, 25.1MB/s]
36%|###5 | Downloading : 67.1M/187M [00:02<00:05, 25.1MB/s]
36%|###6 | Downloading : 68.1M/187M [00:02<00:05, 24.8MB/s]
37%|###6 | Downloading : 69.1M/187M [00:02<00:04, 24.7MB/s]
38%|###7 | Downloading : 70.1M/187M [00:02<00:04, 25.1MB/s]
38%|###8 | Downloading : 71.1M/187M [00:02<00:04, 25.0MB/s]
39%|###8 | Downloading : 72.1M/187M [00:02<00:04, 25.0MB/s]
39%|###9 | Downloading : 73.1M/187M [00:03<00:04, 25.1MB/s]
40%|###9 | Downloading : 74.1M/187M [00:03<00:04, 25.0MB/s]
40%|#### | Downloading : 75.1M/187M [00:03<00:04, 25.0MB/s]
41%|#### | Downloading : 76.1M/187M [00:03<00:04, 25.0MB/s]
41%|####1 | Downloading : 77.1M/187M [00:03<00:04, 24.9MB/s]
42%|####1 | Downloading : 78.1M/187M [00:03<00:04, 25.0MB/s]
42%|####2 | Downloading : 79.1M/187M [00:03<00:04, 24.9MB/s]
43%|####2 | Downloading : 80.1M/187M [00:03<00:04, 25.0MB/s]
43%|####3 | Downloading : 81.1M/187M [00:03<00:04, 25.0MB/s]
44%|####3 | Downloading : 82.1M/187M [00:03<00:04, 25.1MB/s]
44%|####4 | Downloading : 83.1M/187M [00:03<00:04, 25.1MB/s]
45%|####5 | Downloading : 84.1M/187M [00:03<00:04, 24.9MB/s]
46%|####5 | Downloading : 85.1M/187M [00:03<00:04, 24.8MB/s]
46%|####6 | Downloading : 86.1M/187M [00:03<00:04, 25.1MB/s]
47%|####6 | Downloading : 87.1M/187M [00:03<00:04, 25.0MB/s]
47%|####7 | Downloading : 88.1M/187M [00:03<00:04, 25.0MB/s]
48%|####7 | Downloading : 89.1M/187M [00:03<00:04, 25.0MB/s]
48%|####8 | Downloading : 90.1M/187M [00:03<00:04, 25.0MB/s]
49%|####8 | Downloading : 91.1M/187M [00:03<00:04, 23.9MB/s]
49%|####9 | Downloading : 92.1M/187M [00:04<00:04, 20.0MB/s]
50%|####9 | Downloading : 92.6M/187M [00:04<00:04, 20.3MB/s]
50%|####9 | Downloading : 93.1M/187M [00:04<00:05, 19.6MB/s]
50%|##### | Downloading : 93.6M/187M [00:04<00:06, 14.2MB/s]
51%|#####1 | Downloading : 95.3M/187M [00:04<00:06, 14.6MB/s]
52%|#####1 | Downloading : 96.3M/187M [00:04<00:06, 14.9MB/s]
52%|#####2 | Downloading : 97.3M/187M [00:04<00:06, 15.0MB/s]
53%|#####2 | Downloading : 98.3M/187M [00:04<00:05, 15.4MB/s]
53%|#####3 | Downloading : 99.3M/187M [00:04<00:05, 15.7MB/s]
54%|#####3 | Downloading : 100M/187M [00:04<00:05, 16.0MB/s]
54%|#####4 | Downloading : 101M/187M [00:04<00:05, 16.3MB/s]
55%|#####4 | Downloading : 102M/187M [00:04<00:05, 16.6MB/s]
55%|#####5 | Downloading : 103M/187M [00:04<00:05, 16.9MB/s]
56%|#####5 | Downloading : 104M/187M [00:04<00:05, 17.1MB/s]
56%|#####6 | Downloading : 105M/187M [00:04<00:04, 17.4MB/s]
57%|#####6 | Downloading : 106M/187M [00:04<00:04, 17.6MB/s]
57%|#####7 | Downloading : 107M/187M [00:04<00:04, 17.6MB/s]
58%|#####8 | Downloading : 108M/187M [00:05<00:05, 15.4MB/s]
58%|#####8 | Downloading : 109M/187M [00:05<00:05, 15.8MB/s]
59%|#####8 | Downloading : 109M/187M [00:05<00:05, 16.1MB/s]
59%|#####8 | Downloading : 110M/187M [00:05<00:04, 16.4MB/s]
59%|#####9 | Downloading : 110M/187M [00:05<00:04, 16.7MB/s]
59%|#####9 | Downloading : 111M/187M [00:05<00:04, 17.0MB/s]
60%|#####9 | Downloading : 111M/187M [00:05<00:04, 17.3MB/s]
60%|#####9 | Downloading : 112M/187M [00:05<00:04, 17.6MB/s]
60%|###### | Downloading : 112M/187M [00:05<00:04, 17.9MB/s]
60%|###### | Downloading : 113M/187M [00:05<00:04, 18.2MB/s]
61%|###### | Downloading : 113M/187M [00:05<00:04, 18.4MB/s]
61%|###### | Downloading : 114M/187M [00:05<00:04, 18.7MB/s]
61%|######1 | Downloading : 114M/187M [00:05<00:04, 18.9MB/s]
61%|######1 | Downloading : 115M/187M [00:05<00:03, 19.2MB/s]
62%|######1 | Downloading : 115M/187M [00:05<00:03, 19.5MB/s]
62%|######2 | Downloading : 116M/187M [00:05<00:03, 19.6MB/s]
62%|######2 | Downloading : 116M/187M [00:05<00:03, 19.8MB/s]
63%|######2 | Downloading : 117M/187M [00:05<00:03, 20.1MB/s]
63%|######2 | Downloading : 117M/187M [00:05<00:03, 20.3MB/s]
63%|######3 | Downloading : 118M/187M [00:05<00:03, 20.5MB/s]
63%|######3 | Downloading : 118M/187M [00:05<00:03, 20.7MB/s]
64%|######3 | Downloading : 119M/187M [00:05<00:03, 21.1MB/s]
64%|######3 | Downloading : 119M/187M [00:05<00:03, 21.2MB/s]
64%|######4 | Downloading : 120M/187M [00:05<00:03, 21.4MB/s]
64%|######4 | Downloading : 120M/187M [00:05<00:03, 21.6MB/s]
65%|######4 | Downloading : 121M/187M [00:05<00:03, 21.8MB/s]
65%|######4 | Downloading : 121M/187M [00:05<00:03, 21.6MB/s]
65%|######5 | Downloading : 122M/187M [00:05<00:03, 21.7MB/s]
66%|######6 | Downloading : 123M/187M [00:05<00:03, 22.0MB/s]
67%|######6 | Downloading : 124M/187M [00:05<00:02, 22.1MB/s]
67%|######7 | Downloading : 125M/187M [00:05<00:02, 22.3MB/s]
68%|######7 | Downloading : 126M/187M [00:05<00:02, 22.5MB/s]
68%|######8 | Downloading : 127M/187M [00:05<00:02, 22.6MB/s]
69%|######8 | Downloading : 128M/187M [00:05<00:02, 22.8MB/s]
69%|######9 | Downloading : 129M/187M [00:06<00:02, 22.7MB/s]
70%|######9 | Downloading : 130M/187M [00:06<00:02, 23.0MB/s]
70%|####### | Downloading : 131M/187M [00:06<00:02, 23.1MB/s]
71%|####### | Downloading : 132M/187M [00:06<00:02, 23.2MB/s]
71%|#######1 | Downloading : 133M/187M [00:06<00:02, 23.3MB/s]
72%|#######1 | Downloading : 134M/187M [00:06<00:02, 23.5MB/s]
72%|#######2 | Downloading : 135M/187M [00:06<00:02, 23.6MB/s]
73%|#######3 | Downloading : 136M/187M [00:06<00:02, 23.7MB/s]
74%|#######3 | Downloading : 137M/187M [00:06<00:02, 23.8MB/s]
74%|#######4 | Downloading : 138M/187M [00:06<00:02, 23.8MB/s]
75%|#######4 | Downloading : 139M/187M [00:06<00:02, 23.8MB/s]
75%|#######5 | Downloading : 140M/187M [00:06<00:02, 23.4MB/s]
76%|#######5 | Downloading : 141M/187M [00:06<00:01, 24.0MB/s]
76%|#######6 | Downloading : 142M/187M [00:06<00:01, 24.1MB/s]
77%|#######6 | Downloading : 143M/187M [00:06<00:01, 24.1MB/s]
77%|#######7 | Downloading : 144M/187M [00:06<00:01, 24.2MB/s]
78%|#######7 | Downloading : 145M/187M [00:06<00:01, 24.2MB/s]
78%|#######8 | Downloading : 146M/187M [00:06<00:01, 24.3MB/s]
79%|#######8 | Downloading : 147M/187M [00:06<00:01, 24.3MB/s]
79%|#######9 | Downloading : 148M/187M [00:06<00:01, 24.4MB/s]
80%|#######9 | Downloading : 149M/187M [00:06<00:01, 24.4MB/s]
81%|######## | Downloading : 150M/187M [00:06<00:01, 24.4MB/s]
81%|########1 | Downloading : 151M/187M [00:06<00:01, 24.4MB/s]
82%|########1 | Downloading : 152M/187M [00:06<00:01, 24.5MB/s]
82%|########2 | Downloading : 153M/187M [00:07<00:01, 24.5MB/s]
83%|########2 | Downloading : 154M/187M [00:07<00:01, 24.6MB/s]
83%|########3 | Downloading : 155M/187M [00:07<00:01, 24.4MB/s]
84%|########3 | Downloading : 156M/187M [00:07<00:01, 24.7MB/s]
84%|########4 | Downloading : 157M/187M [00:07<00:01, 24.7MB/s]
85%|########4 | Downloading : 158M/187M [00:07<00:01, 24.8MB/s]
85%|########5 | Downloading : 159M/187M [00:07<00:01, 24.8MB/s]
86%|########5 | Downloading : 160M/187M [00:07<00:01, 24.7MB/s]
86%|########6 | Downloading : 161M/187M [00:07<00:01, 24.8MB/s]
87%|########6 | Downloading : 162M/187M [00:07<00:01, 24.8MB/s]
87%|########7 | Downloading : 163M/187M [00:07<00:00, 24.8MB/s]
88%|########8 | Downloading : 164M/187M [00:07<00:00, 24.8MB/s]
89%|########8 | Downloading : 165M/187M [00:07<00:00, 24.8MB/s]
89%|########9 | Downloading : 166M/187M [00:07<00:00, 24.8MB/s]
90%|########9 | Downloading : 167M/187M [00:07<00:00, 24.8MB/s]
90%|######### | Downloading : 168M/187M [00:07<00:00, 24.2MB/s]
91%|######### | Downloading : 169M/187M [00:07<00:00, 20.1MB/s]
91%|######### | Downloading : 170M/187M [00:07<00:00, 20.0MB/s]
91%|#########1| Downloading : 170M/187M [00:07<00:00, 19.7MB/s]
91%|#########1| Downloading : 171M/187M [00:07<00:00, 20.0MB/s]
92%|#########1| Downloading : 171M/187M [00:07<00:00, 20.1MB/s]
92%|#########2| Downloading : 172M/187M [00:08<00:00, 20.4MB/s]
92%|#########2| Downloading : 172M/187M [00:08<00:00, 20.5MB/s]
93%|#########2| Downloading : 173M/187M [00:08<00:00, 20.8MB/s]
93%|#########2| Downloading : 173M/187M [00:08<00:00, 20.9MB/s]
93%|#########3| Downloading : 174M/187M [00:08<00:00, 21.0MB/s]
93%|#########3| Downloading : 174M/187M [00:08<00:00, 21.2MB/s]
94%|#########3| Downloading : 175M/187M [00:08<00:00, 20.3MB/s]
94%|#########3| Downloading : 175M/187M [00:08<00:00, 19.6MB/s]
95%|#########4| Downloading : 177M/187M [00:08<00:00, 18.0MB/s]
95%|#########4| Downloading : 177M/187M [00:08<00:00, 18.2MB/s]
95%|#########5| Downloading : 178M/187M [00:08<00:00, 18.4MB/s]
96%|#########5| Downloading : 178M/187M [00:08<00:00, 18.7MB/s]
96%|#########5| Downloading : 179M/187M [00:08<00:00, 18.9MB/s]
96%|#########6| Downloading : 179M/187M [00:08<00:00, 19.2MB/s]
96%|#########6| Downloading : 180M/187M [00:08<00:00, 19.4MB/s]
97%|#########6| Downloading : 180M/187M [00:08<00:00, 19.7MB/s]
97%|#########6| Downloading : 181M/187M [00:08<00:00, 19.9MB/s]
97%|#########7| Downloading : 181M/187M [00:08<00:00, 20.1MB/s]
97%|#########7| Downloading : 182M/187M [00:08<00:00, 20.3MB/s]
98%|#########7| Downloading : 182M/187M [00:08<00:00, 20.5MB/s]
98%|#########7| Downloading : 183M/187M [00:08<00:00, 20.7MB/s]
98%|#########8| Downloading : 183M/187M [00:08<00:00, 20.8MB/s]
98%|#########8| Downloading : 184M/187M [00:08<00:00, 21.0MB/s]
99%|#########8| Downloading : 184M/187M [00:08<00:00, 21.2MB/s]
99%|#########8| Downloading : 185M/187M [00:08<00:00, 21.4MB/s]
99%|#########9| Downloading : 185M/187M [00:08<00:00, 21.5MB/s]
100%|#########9| Downloading : 186M/187M [00:08<00:00, 21.7MB/s]
100%|#########9| Downloading : 186M/187M [00:08<00:00, 21.8MB/s]
100%|##########| Downloading : 187M/187M [00:08<00:00, 21.9MB/s]
100%|##########| Downloading : 187M/187M [00:08<00:00, 22.1MB/s]
Verifying hash 5133fe92b7b8f03ae19219d5f46e4177.
File saved as /tmp/tmpxgx5qfpp/temp.zip.
Extracting missing files
Successfully extracted 10 files
10 files missing from /home/circleci/project/mne/datasets/_fsaverage/bem.txt in /home/circleci/mne_data/MNE-sample-data/subjects/fsaverage
Downloading missing files remotely
Downloading https://files.osf.io/v1/resources/rxvq7/providers/osfstorage/5cbdb9f5353c58001aa02025?revision=4&action=download&direct&version=4 (227.8 MB)
0%| | Downloading : 0.00/228M [00:00<?, ?B/s]
0%| | Downloading : 312k/228M [00:00<00:13, 18.1MB/s]
0%| | Downloading : 1.05M/228M [00:00<00:12, 18.7MB/s]
1%| | Downloading : 1.55M/228M [00:00<00:12, 18.9MB/s]
1%| | Downloading : 2.05M/228M [00:00<00:12, 19.1MB/s]
1%|1 | Downloading : 2.55M/228M [00:00<00:12, 19.4MB/s]
1%|1 | Downloading : 3.05M/228M [00:00<00:12, 19.6MB/s]
2%|1 | Downloading : 3.55M/228M [00:00<00:11, 19.8MB/s]
2%|1 | Downloading : 4.05M/228M [00:00<00:11, 20.0MB/s]
2%|1 | Downloading : 4.55M/228M [00:00<00:11, 20.2MB/s]
2%|2 | Downloading : 5.05M/228M [00:00<00:11, 20.4MB/s]
2%|2 | Downloading : 5.55M/228M [00:00<00:11, 20.5MB/s]
3%|2 | Downloading : 6.05M/228M [00:00<00:11, 20.7MB/s]
3%|2 | Downloading : 6.55M/228M [00:00<00:11, 20.9MB/s]
3%|3 | Downloading : 7.05M/228M [00:00<00:10, 21.1MB/s]
3%|3 | Downloading : 7.55M/228M [00:00<00:10, 21.2MB/s]
4%|3 | Downloading : 8.05M/228M [00:00<00:10, 21.4MB/s]
4%|3 | Downloading : 8.55M/228M [00:00<00:10, 21.5MB/s]
4%|3 | Downloading : 9.05M/228M [00:00<00:10, 21.6MB/s]
4%|4 | Downloading : 9.55M/228M [00:00<00:10, 21.8MB/s]
4%|4 | Downloading : 10.1M/228M [00:00<00:10, 21.9MB/s]
5%|4 | Downloading : 10.6M/228M [00:00<00:10, 22.1MB/s]
5%|4 | Downloading : 11.1M/228M [00:00<00:10, 22.2MB/s]
5%|5 | Downloading : 11.6M/228M [00:00<00:10, 22.3MB/s]
5%|5 | Downloading : 12.1M/228M [00:00<00:10, 22.4MB/s]
6%|5 | Downloading : 12.6M/228M [00:00<00:10, 22.5MB/s]
6%|5 | Downloading : 13.1M/228M [00:00<00:09, 22.6MB/s]
6%|5 | Downloading : 13.6M/228M [00:00<00:09, 22.7MB/s]
6%|6 | Downloading : 14.1M/228M [00:00<00:09, 22.8MB/s]
6%|6 | Downloading : 14.6M/228M [00:00<00:09, 22.9MB/s]
7%|6 | Downloading : 15.1M/228M [00:00<00:09, 23.0MB/s]
7%|6 | Downloading : 15.6M/228M [00:00<00:09, 23.1MB/s]
7%|7 | Downloading : 16.1M/228M [00:00<00:09, 23.2MB/s]
7%|7 | Downloading : 16.6M/228M [00:00<00:09, 23.1MB/s]
7%|7 | Downloading : 17.1M/228M [00:00<00:09, 22.8MB/s]
8%|7 | Downloading : 17.6M/228M [00:00<00:09, 23.0MB/s]
8%|7 | Downloading : 18.1M/228M [00:00<00:09, 22.9MB/s]
8%|8 | Downloading : 18.6M/228M [00:00<00:09, 22.8MB/s]
8%|8 | Downloading : 19.1M/228M [00:00<00:09, 22.4MB/s]
9%|8 | Downloading : 19.6M/228M [00:00<00:09, 22.3MB/s]
9%|8 | Downloading : 20.1M/228M [00:00<00:09, 22.1MB/s]
9%|9 | Downloading : 20.6M/228M [00:00<00:09, 22.0MB/s]
9%|9 | Downloading : 21.1M/228M [00:00<00:10, 21.7MB/s]
9%|9 | Downloading : 21.6M/228M [00:00<00:10, 21.5MB/s]
10%|9 | Downloading : 22.1M/228M [00:00<00:10, 21.3MB/s]
10%|9 | Downloading : 22.6M/228M [00:01<00:10, 21.0MB/s]
10%|# | Downloading : 23.1M/228M [00:01<00:10, 20.9MB/s]
10%|# | Downloading : 23.6M/228M [00:01<00:10, 20.8MB/s]
11%|# | Downloading : 24.1M/228M [00:01<00:10, 20.9MB/s]
11%|# | Downloading : 24.6M/228M [00:01<00:10, 20.9MB/s]
11%|#1 | Downloading : 25.1M/228M [00:01<00:10, 20.7MB/s]
11%|#1 | Downloading : 25.6M/228M [00:01<00:10, 20.5MB/s]
11%|#1 | Downloading : 26.1M/228M [00:01<00:10, 20.2MB/s]
12%|#1 | Downloading : 26.6M/228M [00:01<00:10, 20.1MB/s]
12%|#1 | Downloading : 27.1M/228M [00:01<00:10, 20.1MB/s]
12%|#2 | Downloading : 27.6M/228M [00:01<00:10, 19.9MB/s]
12%|#2 | Downloading : 28.1M/228M [00:01<00:10, 19.7MB/s]
13%|#2 | Downloading : 28.6M/228M [00:01<00:10, 19.7MB/s]
13%|#2 | Downloading : 29.1M/228M [00:01<00:10, 19.8MB/s]
13%|#2 | Downloading : 29.6M/228M [00:01<00:10, 19.9MB/s]
13%|#3 | Downloading : 30.1M/228M [00:01<00:10, 19.9MB/s]
13%|#3 | Downloading : 30.6M/228M [00:01<00:10, 20.0MB/s]
14%|#3 | Downloading : 31.1M/228M [00:01<00:10, 20.0MB/s]
14%|#3 | Downloading : 31.6M/228M [00:01<00:10, 20.0MB/s]
14%|#4 | Downloading : 32.1M/228M [00:01<00:10, 20.0MB/s]
14%|#4 | Downloading : 32.6M/228M [00:01<00:10, 20.1MB/s]
15%|#4 | Downloading : 33.1M/228M [00:01<00:10, 20.2MB/s]
15%|#4 | Downloading : 33.6M/228M [00:01<00:10, 20.0MB/s]
15%|#4 | Downloading : 34.1M/228M [00:01<00:10, 19.9MB/s]
15%|#5 | Downloading : 34.6M/228M [00:01<00:10, 19.6MB/s]
15%|#5 | Downloading : 35.1M/228M [00:01<00:10, 19.6MB/s]
16%|#5 | Downloading : 35.6M/228M [00:01<00:10, 19.6MB/s]
16%|#5 | Downloading : 36.1M/228M [00:01<00:10, 19.7MB/s]
16%|#6 | Downloading : 36.6M/228M [00:01<00:10, 19.6MB/s]
16%|#6 | Downloading : 37.1M/228M [00:01<00:10, 19.7MB/s]
16%|#6 | Downloading : 37.6M/228M [00:01<00:10, 19.5MB/s]
17%|#6 | Downloading : 38.1M/228M [00:01<00:10, 19.5MB/s]
17%|#6 | Downloading : 38.6M/228M [00:01<00:10, 19.3MB/s]
17%|#7 | Downloading : 39.1M/228M [00:01<00:10, 19.2MB/s]
17%|#7 | Downloading : 39.6M/228M [00:01<00:10, 19.2MB/s]
18%|#7 | Downloading : 40.1M/228M [00:01<00:10, 19.0MB/s]
18%|#7 | Downloading : 40.6M/228M [00:02<00:10, 18.9MB/s]
18%|#8 | Downloading : 41.1M/228M [00:02<00:10, 18.7MB/s]
18%|#8 | Downloading : 41.6M/228M [00:02<00:10, 18.9MB/s]
18%|#8 | Downloading : 42.1M/228M [00:02<00:10, 18.8MB/s]
19%|#8 | Downloading : 42.6M/228M [00:02<00:10, 18.5MB/s]
19%|#8 | Downloading : 43.1M/228M [00:02<00:10, 18.2MB/s]
19%|#9 | Downloading : 43.6M/228M [00:02<00:10, 18.6MB/s]
19%|#9 | Downloading : 44.1M/228M [00:02<00:10, 18.6MB/s]
20%|#9 | Downloading : 44.6M/228M [00:02<00:10, 18.7MB/s]
20%|#9 | Downloading : 45.1M/228M [00:02<00:10, 18.7MB/s]
20%|## | Downloading : 45.6M/228M [00:02<00:10, 18.7MB/s]
20%|## | Downloading : 46.1M/228M [00:02<00:10, 18.6MB/s]
20%|## | Downloading : 46.6M/228M [00:02<00:10, 18.4MB/s]
21%|## | Downloading : 47.1M/228M [00:02<00:10, 18.5MB/s]
21%|## | Downloading : 47.6M/228M [00:02<00:10, 18.4MB/s]
21%|##1 | Downloading : 48.1M/228M [00:02<00:10, 18.4MB/s]
21%|##1 | Downloading : 48.6M/228M [00:02<00:10, 18.4MB/s]
22%|##1 | Downloading : 49.1M/228M [00:02<00:10, 18.3MB/s]
22%|##1 | Downloading : 49.6M/228M [00:02<00:10, 18.0MB/s]
22%|##1 | Downloading : 50.1M/228M [00:02<00:10, 18.1MB/s]
22%|##2 | Downloading : 50.6M/228M [00:02<00:10, 18.2MB/s]
22%|##2 | Downloading : 51.1M/228M [00:02<00:10, 18.1MB/s]
23%|##2 | Downloading : 51.6M/228M [00:02<00:10, 18.3MB/s]
23%|##2 | Downloading : 52.1M/228M [00:02<00:10, 18.4MB/s]
23%|##3 | Downloading : 52.6M/228M [00:02<00:10, 18.3MB/s]
23%|##3 | Downloading : 53.1M/228M [00:02<00:09, 18.4MB/s]
24%|##3 | Downloading : 53.6M/228M [00:02<00:09, 18.3MB/s]
24%|##3 | Downloading : 54.1M/228M [00:02<00:09, 18.4MB/s]
24%|##3 | Downloading : 54.6M/228M [00:02<00:09, 18.4MB/s]
24%|##4 | Downloading : 55.1M/228M [00:02<00:09, 18.4MB/s]
24%|##4 | Downloading : 55.6M/228M [00:02<00:09, 18.4MB/s]
25%|##4 | Downloading : 56.1M/228M [00:02<00:09, 18.3MB/s]
25%|##4 | Downloading : 56.6M/228M [00:02<00:09, 18.3MB/s]
25%|##5 | Downloading : 57.1M/228M [00:02<00:09, 18.1MB/s]
25%|##5 | Downloading : 57.6M/228M [00:03<00:09, 18.1MB/s]
25%|##5 | Downloading : 58.1M/228M [00:03<00:09, 18.2MB/s]
26%|##5 | Downloading : 58.6M/228M [00:03<00:09, 18.1MB/s]
26%|##5 | Downloading : 59.1M/228M [00:03<00:09, 17.9MB/s]
26%|##6 | Downloading : 59.6M/228M [00:03<00:09, 17.8MB/s]
26%|##6 | Downloading : 60.1M/228M [00:03<00:09, 17.8MB/s]
27%|##6 | Downloading : 60.6M/228M [00:03<00:09, 17.8MB/s]
27%|##6 | Downloading : 61.1M/228M [00:03<00:09, 17.8MB/s]
27%|##7 | Downloading : 61.6M/228M [00:03<00:09, 17.8MB/s]
27%|##7 | Downloading : 62.1M/228M [00:03<00:09, 17.9MB/s]
27%|##7 | Downloading : 62.6M/228M [00:03<00:09, 17.9MB/s]
28%|##7 | Downloading : 63.1M/228M [00:03<00:09, 17.7MB/s]
28%|##7 | Downloading : 63.6M/228M [00:03<00:09, 17.8MB/s]
28%|##8 | Downloading : 64.1M/228M [00:03<00:09, 17.7MB/s]
29%|##8 | Downloading : 65.1M/228M [00:03<00:09, 17.9MB/s]
29%|##8 | Downloading : 65.6M/228M [00:03<00:09, 17.8MB/s]
29%|##9 | Downloading : 66.1M/228M [00:03<00:09, 18.0MB/s]
29%|##9 | Downloading : 66.6M/228M [00:03<00:09, 18.2MB/s]
29%|##9 | Downloading : 67.1M/228M [00:03<00:09, 18.3MB/s]
30%|##9 | Downloading : 67.6M/228M [00:03<00:09, 18.0MB/s]
30%|### | Downloading : 68.6M/228M [00:03<00:09, 18.3MB/s]
30%|### | Downloading : 69.1M/228M [00:03<00:08, 18.5MB/s]
31%|### | Downloading : 69.6M/228M [00:03<00:09, 18.4MB/s]
31%|### | Downloading : 70.1M/228M [00:03<00:09, 18.1MB/s]
31%|### | Downloading : 70.6M/228M [00:03<00:08, 18.5MB/s]
31%|###1 | Downloading : 71.1M/228M [00:03<00:08, 18.6MB/s]
31%|###1 | Downloading : 71.6M/228M [00:03<00:08, 18.8MB/s]
32%|###1 | Downloading : 72.1M/228M [00:03<00:08, 18.9MB/s]
32%|###1 | Downloading : 72.6M/228M [00:03<00:08, 19.1MB/s]
32%|###2 | Downloading : 73.1M/228M [00:03<00:08, 19.3MB/s]
32%|###2 | Downloading : 73.6M/228M [00:03<00:08, 19.5MB/s]
33%|###2 | Downloading : 74.1M/228M [00:03<00:08, 19.7MB/s]
33%|###2 | Downloading : 74.6M/228M [00:03<00:08, 19.8MB/s]
33%|###2 | Downloading : 75.1M/228M [00:03<00:08, 20.0MB/s]
33%|###3 | Downloading : 75.6M/228M [00:03<00:07, 20.1MB/s]
33%|###3 | Downloading : 76.1M/228M [00:03<00:07, 20.3MB/s]
34%|###3 | Downloading : 76.6M/228M [00:04<00:07, 20.4MB/s]
34%|###3 | Downloading : 77.1M/228M [00:04<00:07, 20.6MB/s]
34%|###4 | Downloading : 77.6M/228M [00:04<00:07, 20.7MB/s]
34%|###4 | Downloading : 78.1M/228M [00:04<00:07, 20.9MB/s]
34%|###4 | Downloading : 78.6M/228M [00:04<00:07, 21.1MB/s]
35%|###4 | Downloading : 79.1M/228M [00:04<00:07, 21.3MB/s]
35%|###4 | Downloading : 79.6M/228M [00:04<00:07, 21.5MB/s]
35%|###5 | Downloading : 80.1M/228M [00:04<00:07, 21.6MB/s]
35%|###5 | Downloading : 80.6M/228M [00:04<00:07, 21.7MB/s]
36%|###5 | Downloading : 81.1M/228M [00:04<00:07, 21.8MB/s]
36%|###5 | Downloading : 81.6M/228M [00:04<00:06, 22.0MB/s]
36%|###6 | Downloading : 82.1M/228M [00:04<00:06, 22.1MB/s]
36%|###6 | Downloading : 82.6M/228M [00:04<00:06, 22.2MB/s]
36%|###6 | Downloading : 83.1M/228M [00:04<00:06, 22.3MB/s]
37%|###6 | Downloading : 83.6M/228M [00:04<00:06, 22.5MB/s]
37%|###6 | Downloading : 84.1M/228M [00:04<00:06, 22.6MB/s]
37%|###7 | Downloading : 84.6M/228M [00:04<00:06, 22.7MB/s]
37%|###7 | Downloading : 85.1M/228M [00:04<00:06, 22.8MB/s]
38%|###7 | Downloading : 85.6M/228M [00:04<00:06, 22.9MB/s]
38%|###7 | Downloading : 86.1M/228M [00:04<00:06, 23.0MB/s]
38%|###8 | Downloading : 86.6M/228M [00:04<00:06, 23.1MB/s]
38%|###8 | Downloading : 87.1M/228M [00:04<00:06, 23.2MB/s]
38%|###8 | Downloading : 87.6M/228M [00:04<00:06, 23.2MB/s]
39%|###8 | Downloading : 88.1M/228M [00:04<00:06, 23.4MB/s]
39%|###8 | Downloading : 88.6M/228M [00:04<00:06, 23.4MB/s]
39%|###9 | Downloading : 89.1M/228M [00:04<00:06, 23.5MB/s]
39%|###9 | Downloading : 89.6M/228M [00:04<00:06, 23.6MB/s]
40%|###9 | Downloading : 90.1M/228M [00:04<00:06, 23.7MB/s]
40%|###9 | Downloading : 90.6M/228M [00:04<00:06, 23.8MB/s]
40%|###9 | Downloading : 91.1M/228M [00:04<00:06, 23.9MB/s]
40%|#### | Downloading : 91.6M/228M [00:04<00:05, 23.9MB/s]
40%|#### | Downloading : 92.1M/228M [00:04<00:05, 24.0MB/s]
41%|#### | Downloading : 92.6M/228M [00:04<00:05, 24.0MB/s]
41%|#### | Downloading : 93.1M/228M [00:04<00:05, 24.1MB/s]
41%|####1 | Downloading : 93.6M/228M [00:04<00:05, 24.2MB/s]
41%|####1 | Downloading : 94.1M/228M [00:04<00:05, 23.6MB/s]
42%|####1 | Downloading : 94.6M/228M [00:04<00:06, 23.0MB/s]
42%|####1 | Downloading : 95.1M/228M [00:04<00:06, 23.1MB/s]
42%|####1 | Downloading : 95.6M/228M [00:04<00:05, 23.1MB/s]
42%|####2 | Downloading : 96.1M/228M [00:04<00:05, 23.3MB/s]
42%|####2 | Downloading : 96.6M/228M [00:04<00:05, 23.2MB/s]
43%|####2 | Downloading : 97.1M/228M [00:04<00:05, 23.2MB/s]
43%|####2 | Downloading : 97.6M/228M [00:04<00:05, 23.2MB/s]
43%|####3 | Downloading : 98.1M/228M [00:04<00:05, 23.2MB/s]
43%|####3 | Downloading : 98.6M/228M [00:04<00:05, 23.3MB/s]
43%|####3 | Downloading : 99.1M/228M [00:04<00:05, 23.4MB/s]
44%|####3 | Downloading : 99.6M/228M [00:05<00:05, 23.6MB/s]
44%|####3 | Downloading : 100M/228M [00:05<00:05, 23.3MB/s]
44%|####4 | Downloading : 101M/228M [00:05<00:05, 23.6MB/s]
45%|####4 | Downloading : 102M/228M [00:05<00:05, 23.7MB/s]
45%|####4 | Downloading : 102M/228M [00:05<00:05, 23.8MB/s]
45%|####5 | Downloading : 103M/228M [00:05<00:05, 23.8MB/s]
45%|####5 | Downloading : 103M/228M [00:05<00:05, 23.7MB/s]
45%|####5 | Downloading : 104M/228M [00:05<00:05, 24.0MB/s]
46%|####5 | Downloading : 104M/228M [00:05<00:05, 24.0MB/s]
46%|####5 | Downloading : 105M/228M [00:05<00:05, 24.1MB/s]
46%|####6 | Downloading : 105M/228M [00:05<00:05, 24.2MB/s]
46%|####6 | Downloading : 106M/228M [00:05<00:05, 24.2MB/s]
47%|####6 | Downloading : 106M/228M [00:05<00:05, 24.4MB/s]
47%|####6 | Downloading : 107M/228M [00:05<00:05, 24.3MB/s]
47%|####7 | Downloading : 107M/228M [00:05<00:05, 24.6MB/s]
47%|####7 | Downloading : 108M/228M [00:05<00:05, 24.7MB/s]
47%|####7 | Downloading : 108M/228M [00:05<00:05, 24.7MB/s]
48%|####7 | Downloading : 109M/228M [00:05<00:05, 24.8MB/s]
48%|####7 | Downloading : 109M/228M [00:05<00:04, 24.9MB/s]
48%|####8 | Downloading : 110M/228M [00:05<00:04, 24.8MB/s]
48%|####8 | Downloading : 110M/228M [00:05<00:04, 24.9MB/s]
49%|####8 | Downloading : 111M/228M [00:05<00:04, 25.0MB/s]
49%|####8 | Downloading : 111M/228M [00:05<00:04, 25.1MB/s]
49%|####8 | Downloading : 112M/228M [00:05<00:04, 25.1MB/s]
49%|####9 | Downloading : 112M/228M [00:05<00:04, 25.1MB/s]
49%|####9 | Downloading : 113M/228M [00:05<00:04, 25.1MB/s]
50%|####9 | Downloading : 113M/228M [00:05<00:04, 25.1MB/s]
50%|####9 | Downloading : 114M/228M [00:05<00:04, 25.2MB/s]
50%|##### | Downloading : 114M/228M [00:05<00:04, 25.2MB/s]
50%|##### | Downloading : 115M/228M [00:05<00:04, 25.2MB/s]
51%|##### | Downloading : 115M/228M [00:05<00:04, 25.1MB/s]
51%|##### | Downloading : 116M/228M [00:05<00:04, 25.2MB/s]
51%|##### | Downloading : 116M/228M [00:05<00:04, 25.3MB/s]
51%|#####1 | Downloading : 117M/228M [00:05<00:04, 25.2MB/s]
51%|#####1 | Downloading : 117M/228M [00:05<00:04, 25.3MB/s]
52%|#####1 | Downloading : 118M/228M [00:05<00:04, 25.3MB/s]
52%|#####1 | Downloading : 118M/228M [00:05<00:04, 25.3MB/s]
52%|#####2 | Downloading : 119M/228M [00:05<00:04, 25.3MB/s]
52%|#####2 | Downloading : 119M/228M [00:05<00:04, 25.3MB/s]
52%|#####2 | Downloading : 120M/228M [00:05<00:04, 25.3MB/s]
53%|#####2 | Downloading : 120M/228M [00:05<00:04, 25.3MB/s]
53%|#####2 | Downloading : 121M/228M [00:05<00:04, 24.8MB/s]
53%|#####3 | Downloading : 121M/228M [00:05<00:04, 24.3MB/s]
54%|#####3 | Downloading : 122M/228M [00:05<00:04, 24.8MB/s]
54%|#####3 | Downloading : 123M/228M [00:05<00:04, 24.6MB/s]
54%|#####4 | Downloading : 124M/228M [00:05<00:04, 24.9MB/s]
54%|#####4 | Downloading : 124M/228M [00:06<00:04, 25.0MB/s]
55%|#####4 | Downloading : 125M/228M [00:06<00:04, 25.0MB/s]
55%|#####4 | Downloading : 125M/228M [00:06<00:04, 25.0MB/s]
55%|#####5 | Downloading : 126M/228M [00:06<00:04, 24.9MB/s]
55%|#####5 | Downloading : 126M/228M [00:06<00:04, 25.0MB/s]
56%|#####5 | Downloading : 127M/228M [00:06<00:04, 24.8MB/s]
56%|#####5 | Downloading : 127M/228M [00:06<00:04, 25.1MB/s]
56%|#####6 | Downloading : 128M/228M [00:06<00:04, 25.2MB/s]
56%|#####6 | Downloading : 128M/228M [00:06<00:04, 25.3MB/s]
56%|#####6 | Downloading : 129M/228M [00:06<00:04, 25.0MB/s]
57%|#####6 | Downloading : 130M/228M [00:06<00:04, 25.2MB/s]
57%|#####7 | Downloading : 130M/228M [00:06<00:04, 25.3MB/s]
57%|#####7 | Downloading : 131M/228M [00:06<00:04, 25.3MB/s]
58%|#####7 | Downloading : 131M/228M [00:06<00:04, 25.3MB/s]
58%|#####7 | Downloading : 132M/228M [00:06<00:03, 25.4MB/s]
58%|#####7 | Downloading : 132M/228M [00:06<00:03, 25.4MB/s]
58%|#####8 | Downloading : 133M/228M [00:06<00:03, 25.0MB/s]
59%|#####8 | Downloading : 134M/228M [00:06<00:03, 25.3MB/s]
59%|#####8 | Downloading : 134M/228M [00:06<00:03, 25.3MB/s]
59%|#####9 | Downloading : 135M/228M [00:06<00:03, 25.3MB/s]
59%|#####9 | Downloading : 135M/228M [00:06<00:03, 25.4MB/s]
60%|#####9 | Downloading : 136M/228M [00:06<00:03, 25.4MB/s]
60%|#####9 | Downloading : 136M/228M [00:06<00:03, 25.4MB/s]
60%|#####9 | Downloading : 137M/228M [00:06<00:03, 25.3MB/s]
60%|###### | Downloading : 137M/228M [00:06<00:03, 25.1MB/s]
61%|###### | Downloading : 138M/228M [00:06<00:03, 25.2MB/s]
61%|###### | Downloading : 139M/228M [00:06<00:03, 25.0MB/s]
61%|######1 | Downloading : 139M/228M [00:06<00:03, 25.2MB/s]
61%|######1 | Downloading : 140M/228M [00:06<00:03, 25.1MB/s]
62%|######1 | Downloading : 141M/228M [00:06<00:03, 25.3MB/s]
62%|######1 | Downloading : 141M/228M [00:06<00:03, 25.3MB/s]
62%|######2 | Downloading : 142M/228M [00:06<00:03, 25.2MB/s]
62%|######2 | Downloading : 142M/228M [00:06<00:03, 25.0MB/s]
63%|######2 | Downloading : 143M/228M [00:06<00:03, 25.2MB/s]
63%|######3 | Downloading : 144M/228M [00:06<00:03, 25.1MB/s]
63%|######3 | Downloading : 144M/228M [00:06<00:03, 25.0MB/s]
63%|######3 | Downloading : 145M/228M [00:06<00:03, 25.2MB/s]
64%|######3 | Downloading : 145M/228M [00:06<00:03, 25.2MB/s]
64%|######3 | Downloading : 146M/228M [00:06<00:03, 25.2MB/s]
64%|######4 | Downloading : 146M/228M [00:06<00:03, 25.2MB/s]
64%|######4 | Downloading : 147M/228M [00:06<00:03, 25.1MB/s]
65%|######4 | Downloading : 147M/228M [00:06<00:03, 25.3MB/s]
65%|######4 | Downloading : 148M/228M [00:06<00:03, 25.2MB/s]
65%|######5 | Downloading : 148M/228M [00:06<00:03, 25.1MB/s]
65%|######5 | Downloading : 149M/228M [00:07<00:03, 25.4MB/s]
65%|######5 | Downloading : 149M/228M [00:07<00:03, 24.8MB/s]
66%|######5 | Downloading : 150M/228M [00:07<00:03, 24.9MB/s]
66%|######5 | Downloading : 150M/228M [00:07<00:03, 24.9MB/s]
66%|######6 | Downloading : 151M/228M [00:07<00:03, 25.0MB/s]
66%|######6 | Downloading : 151M/228M [00:07<00:03, 25.0MB/s]
67%|######6 | Downloading : 152M/228M [00:07<00:03, 25.0MB/s]
67%|######6 | Downloading : 152M/228M [00:07<00:03, 25.1MB/s]
67%|######6 | Downloading : 153M/228M [00:07<00:03, 25.1MB/s]
67%|######7 | Downloading : 153M/228M [00:07<00:03, 25.1MB/s]
67%|######7 | Downloading : 154M/228M [00:07<00:03, 25.2MB/s]
68%|######7 | Downloading : 154M/228M [00:07<00:03, 25.2MB/s]
68%|######7 | Downloading : 155M/228M [00:07<00:03, 25.1MB/s]
68%|######8 | Downloading : 155M/228M [00:07<00:03, 25.0MB/s]
68%|######8 | Downloading : 156M/228M [00:07<00:02, 25.2MB/s]
69%|######8 | Downloading : 156M/228M [00:07<00:02, 25.4MB/s]
69%|######8 | Downloading : 157M/228M [00:07<00:02, 25.3MB/s]
69%|######8 | Downloading : 157M/228M [00:07<00:02, 25.3MB/s]
69%|######9 | Downloading : 158M/228M [00:07<00:02, 24.9MB/s]
70%|######9 | Downloading : 159M/228M [00:07<00:02, 25.2MB/s]
70%|######9 | Downloading : 159M/228M [00:07<00:02, 25.3MB/s]
70%|####### | Downloading : 160M/228M [00:07<00:02, 25.1MB/s]
70%|####### | Downloading : 161M/228M [00:07<00:02, 25.3MB/s]
71%|####### | Downloading : 161M/228M [00:07<00:02, 25.4MB/s]
71%|####### | Downloading : 162M/228M [00:07<00:02, 25.4MB/s]
71%|#######1 | Downloading : 162M/228M [00:07<00:02, 25.4MB/s]
71%|#######1 | Downloading : 163M/228M [00:07<00:02, 25.1MB/s]
72%|#######1 | Downloading : 164M/228M [00:07<00:02, 25.3MB/s]
72%|#######2 | Downloading : 164M/228M [00:07<00:02, 25.3MB/s]
72%|#######2 | Downloading : 165M/228M [00:07<00:02, 25.3MB/s]
72%|#######2 | Downloading : 165M/228M [00:07<00:02, 25.3MB/s]
73%|#######2 | Downloading : 166M/228M [00:07<00:02, 25.2MB/s]
73%|#######2 | Downloading : 166M/228M [00:07<00:02, 25.0MB/s]
73%|#######3 | Downloading : 167M/228M [00:07<00:02, 25.2MB/s]
73%|#######3 | Downloading : 167M/228M [00:07<00:02, 25.3MB/s]
74%|#######3 | Downloading : 168M/228M [00:07<00:02, 25.2MB/s]
74%|#######3 | Downloading : 168M/228M [00:07<00:02, 25.2MB/s]
74%|#######4 | Downloading : 169M/228M [00:07<00:02, 25.1MB/s]
74%|#######4 | Downloading : 169M/228M [00:07<00:02, 25.1MB/s]
74%|#######4 | Downloading : 170M/228M [00:07<00:02, 24.8MB/s]
75%|#######4 | Downloading : 170M/228M [00:07<00:02, 25.0MB/s]
75%|#######4 | Downloading : 171M/228M [00:07<00:02, 24.7MB/s]
75%|#######5 | Downloading : 171M/228M [00:07<00:02, 24.3MB/s]
75%|#######5 | Downloading : 172M/228M [00:07<00:02, 24.5MB/s]
76%|#######5 | Downloading : 172M/228M [00:07<00:02, 24.2MB/s]
76%|#######5 | Downloading : 173M/228M [00:08<00:02, 24.0MB/s]
76%|#######5 | Downloading : 173M/228M [00:08<00:02, 24.2MB/s]
76%|#######6 | Downloading : 174M/228M [00:08<00:02, 23.8MB/s]
77%|#######6 | Downloading : 175M/228M [00:08<00:02, 24.0MB/s]
77%|#######6 | Downloading : 175M/228M [00:08<00:02, 23.9MB/s]
77%|#######7 | Downloading : 176M/228M [00:08<00:02, 22.5MB/s]
78%|#######7 | Downloading : 177M/228M [00:08<00:02, 22.9MB/s]
78%|#######8 | Downloading : 178M/228M [00:08<00:02, 22.8MB/s]
79%|#######8 | Downloading : 179M/228M [00:08<00:02, 22.9MB/s]
79%|#######9 | Downloading : 180M/228M [00:08<00:02, 22.9MB/s]
79%|#######9 | Downloading : 181M/228M [00:08<00:02, 23.0MB/s]
80%|#######9 | Downloading : 182M/228M [00:08<00:02, 23.2MB/s]
80%|######## | Downloading : 183M/228M [00:08<00:02, 23.3MB/s]
81%|######## | Downloading : 184M/228M [00:08<00:02, 22.8MB/s]
81%|########1 | Downloading : 185M/228M [00:08<00:01, 22.9MB/s]
82%|########1 | Downloading : 186M/228M [00:08<00:01, 23.0MB/s]
82%|########2 | Downloading : 187M/228M [00:08<00:01, 23.0MB/s]
83%|########2 | Downloading : 188M/228M [00:08<00:01, 23.1MB/s]
83%|########3 | Downloading : 189M/228M [00:08<00:01, 23.1MB/s]
83%|########3 | Downloading : 190M/228M [00:08<00:01, 23.3MB/s]
84%|########3 | Downloading : 191M/228M [00:08<00:01, 23.3MB/s]
84%|########4 | Downloading : 192M/228M [00:08<00:01, 23.4MB/s]
85%|########4 | Downloading : 193M/228M [00:08<00:01, 23.4MB/s]
85%|########5 | Downloading : 194M/228M [00:08<00:01, 23.5MB/s]
86%|########5 | Downloading : 195M/228M [00:09<00:01, 23.6MB/s]
86%|########6 | Downloading : 196M/228M [00:09<00:01, 23.6MB/s]
87%|########6 | Downloading : 197M/228M [00:09<00:01, 23.7MB/s]
87%|########6 | Downloading : 198M/228M [00:09<00:01, 23.7MB/s]
87%|########7 | Downloading : 199M/228M [00:09<00:01, 23.8MB/s]
88%|########7 | Downloading : 200M/228M [00:09<00:01, 23.8MB/s]
88%|########8 | Downloading : 201M/228M [00:09<00:01, 23.8MB/s]
89%|########8 | Downloading : 202M/228M [00:09<00:01, 23.9MB/s]
89%|########9 | Downloading : 203M/228M [00:09<00:01, 23.9MB/s]
90%|########9 | Downloading : 204M/228M [00:09<00:01, 24.1MB/s]
90%|######### | Downloading : 205M/228M [00:09<00:00, 24.1MB/s]
90%|######### | Downloading : 206M/228M [00:09<00:00, 24.1MB/s]
91%|######### | Downloading : 207M/228M [00:09<00:00, 24.3MB/s]
91%|#########1| Downloading : 208M/228M [00:09<00:00, 24.3MB/s]
92%|#########1| Downloading : 209M/228M [00:09<00:00, 24.3MB/s]
92%|#########2| Downloading : 210M/228M [00:09<00:00, 24.3MB/s]
93%|#########2| Downloading : 211M/228M [00:09<00:00, 24.4MB/s]
93%|#########3| Downloading : 212M/228M [00:09<00:00, 24.5MB/s]
94%|#########3| Downloading : 213M/228M [00:09<00:00, 24.5MB/s]
94%|#########3| Downloading : 214M/228M [00:09<00:00, 24.6MB/s]
94%|#########4| Downloading : 215M/228M [00:09<00:00, 24.5MB/s]
95%|#########4| Downloading : 216M/228M [00:09<00:00, 24.5MB/s]
95%|#########5| Downloading : 217M/228M [00:09<00:00, 24.5MB/s]
96%|#########5| Downloading : 218M/228M [00:09<00:00, 24.5MB/s]
96%|#########6| Downloading : 219M/228M [00:10<00:00, 24.7MB/s]
97%|#########6| Downloading : 220M/228M [00:10<00:00, 24.5MB/s]
97%|#########7| Downloading : 221M/228M [00:10<00:00, 24.2MB/s]
97%|#########7| Downloading : 222M/228M [00:10<00:00, 24.2MB/s]
98%|#########7| Downloading : 223M/228M [00:10<00:00, 24.3MB/s]
98%|#########8| Downloading : 224M/228M [00:10<00:00, 24.3MB/s]
99%|#########8| Downloading : 225M/228M [00:10<00:00, 24.3MB/s]
99%|#########9| Downloading : 226M/228M [00:10<00:00, 24.3MB/s]
100%|#########9| Downloading : 227M/228M [00:10<00:00, 24.4MB/s]
100%|##########| Downloading : 228M/228M [00:10<00:00, 24.4MB/s]
100%|##########| Downloading : 228M/228M [00:10<00:00, 23.0MB/s]
Verifying hash b31509cdcf7908af6a83dc5ee8f49fb1.
File saved as /tmp/tmp1zhdr9wg/temp.zip.
Extracting missing files
Successfully extracted 10 files
```

Compute example data. For reference see Compute MNE-dSPM inverse solution on evoked data in volume source space

Load data:

```
evoked = mne.read_evokeds(fname_evoked, condition=0, baseline=(None, 0))
inverse_operator = read_inverse_operator(fname_inv)
# Apply inverse operator
stc = apply_inverse(evoked, inverse_operator, 1.0 / 3.0 ** 2, "dSPM")
# To save time
stc.crop(0.09, 0.09)
```

Out:

```
Reading /home/circleci/mne_data/MNE-sample-data/MEG/sample/sample_audvis-ave.fif ...
Read a total of 4 projection items:
PCA-v1 (1 x 102) active
PCA-v2 (1 x 102) active
PCA-v3 (1 x 102) active
Average EEG reference (1 x 60) active
Found the data of interest:
t = -199.80 ... 499.49 ms (Left Auditory)
0 CTF compensation matrices available
nave = 55 - aspect type = 100
Projections have already been applied. Setting proj attribute to True.
Applying baseline correction (mode: mean)
Reading inverse operator decomposition from /home/circleci/mne_data/MNE-sample-data/MEG/sample/sample_audvis-meg-vol-7-meg-inv.fif...
Reading inverse operator info...
[done]
Reading inverse operator decomposition...
[done]
305 x 305 full covariance (kind = 1) found.
Read a total of 4 projection items:
PCA-v1 (1 x 102) active
PCA-v2 (1 x 102) active
PCA-v3 (1 x 102) active
Average EEG reference (1 x 60) active
Noise covariance matrix read.
11271 x 11271 diagonal covariance (kind = 2) found.
Source covariance matrix read.
Did not find the desired covariance matrix (kind = 6)
11271 x 11271 diagonal covariance (kind = 5) found.
Depth priors read.
Did not find the desired covariance matrix (kind = 3)
Reading a source space...
[done]
1 source spaces read
Read a total of 4 projection items:
PCA-v1 (1 x 102) active
PCA-v2 (1 x 102) active
PCA-v3 (1 x 102) active
Average EEG reference (1 x 60) active
Source spaces transformed to the inverse solution coordinate frame
Preparing the inverse operator for use...
Scaled noise and source covariance from nave = 1 to nave = 55
Created the regularized inverter
Created an SSP operator (subspace dimension = 3)
Created the whitener using a noise covariance matrix with rank 302 (3 small eigenvalues omitted)
Computing noise-normalization factors (dSPM)...
[done]
Applying inverse operator to "Left Auditory"...
Picked 305 channels from the data
Computing inverse...
Eigenleads need to be weighted ...
Computing residual...
Explained 59.7% variance
Combining the current components...
dSPM...
[done]
```

## Get a SourceMorph object for VolSourceEstimate¶

`subject_from`

can typically be inferred from
`src`

,
and `subject_to`

is set to ‘fsaverage’ by default. `subjects_dir`

can be
None when set in the environment. In that case SourceMorph can be initialized
taking `src`

as only argument. See `mne.SourceMorph`

for more
details.

The default parameter setting for *zooms* will cause the reference volumes
to be resliced before computing the transform. A value of ‘5’ would cause
the function to reslice to an isotropic voxel size of 5 mm. The higher this
value the less accurate but faster the computation will be.

The recommended way to use this is to morph to a specific destination source
space so that different `subject_from`

morphs will go to the same space.`
A standard usage for volumetric data reads:

```
src_fs = mne.read_source_spaces(fname_src_fsaverage)
morph = mne.compute_source_morph(
inverse_operator['src'], subject_from='sample', subjects_dir=subjects_dir,
niter_affine=[10, 10, 5], niter_sdr=[10, 10, 5], # just for speed
src_to=src_fs, verbose=True)
```

Out:

```
Reading a source space...
[done]
1 source spaces read
Volume source space(s) present...
Loading /home/circleci/mne_data/MNE-sample-data/subjects/sample/mri/brain.mgz as "from" volume
Loading /home/circleci/mne_data/MNE-sample-data/subjects/fsaverage/mri/brain.mgz as "to" volume
Computing nonlinear Symmetric Diffeomorphic Registration...
Optimizing translation:
Optimizing level 2 [max iter: 10]
Optimizing level 1 [max iter: 10]
Optimizing level 0 [max iter: 5]
Optimizing rigid-body:
Optimizing level 2 [max iter: 10]
Optimizing level 1 [max iter: 10]
Optimizing level 0 [max iter: 5]
Translation: 22.7 mm
Rotation: 20.7°
Optimizing full affine:
Optimizing level 2 [max iter: 10]
Optimizing level 1 [max iter: 10]
Optimizing level 0 [max iter: 5]
Optimizing SDR:
Variance explained by morph: 99.0%
[done]
```

## Apply morph to VolSourceEstimate¶

The morph can be applied to the source estimate data, by giving it as the
first argument to the `morph.apply()`

method:

## Convert morphed VolSourceEstimate into NIfTI¶

We can convert our morphed source estimate into a NIfTI volume using
`morph.apply(..., output='nifti1')`

.

```
# Create mri-resolution volume of results
img_fsaverage = morph.apply(stc, mri_resolution=2, output='nifti1')
```

## Plot results¶

```
# Load fsaverage anatomical image
t1_fsaverage = nib.load(fname_t1_fsaverage)
# Plot glass brain (change to plot_anat to display an overlaid anatomical T1)
display = plot_glass_brain(t1_fsaverage,
title='subject results to fsaverage',
draw_cross=False,
annotate=True)
# Add functional data as overlay
display.add_overlay(img_fsaverage, alpha=0.75)
```

## Reading and writing SourceMorph from and to disk¶

An instance of SourceMorph can be saved, by calling
`morph.save`

.

This methods allows for specification of a filename under which the `morph`

will be save in “.h5” format. If no file extension is provided, “-morph.h5”
will be appended to the respective defined filename:

```
>>> morph.save('my-file-name')
```

Reading a saved source morph can be achieved by using
`mne.read_source_morph()`

:

```
>>> morph = mne.read_source_morph('my-file-name-morph.h5')
```

Once the environment is set up correctly, no information such as
`subject_from`

or `subjects_dir`

must be provided, since it can be
inferred from the data and used morph to ‘fsaverage’ by default, e.g.:

```
>>> morph.apply(stc)
```

## References¶

- 1
Brian B. Avants, Charles L. Epstein, Murray C. Grossman, and James C. Gee. Symmetric diffeomorphic image registration with cross-correlation: evaluating automated labeling of elderly and neurodegenerative brain.

*Medical Image Analysis*, 12(1):26–41, 2008. doi:10.1016/j.media.2007.06.004.

**Total running time of the script:** ( 0 minutes 39.444 seconds)

**Estimated memory usage:** 795 MB