Note
Go to the end to download the full example code.
8.3. UKB VBM GMD Extraction¶
Authors: Federico Raimondo
License: BSD 3 clause
Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz
0%| | 0.00/10.7M [00:00<?, ?B/s]
1%| | 69.6k/10.7M [00:00<00:28, 375kB/s]
1%|▏ | 139k/10.7M [00:00<00:28, 372kB/s]
4%|▍ | 434k/10.7M [00:00<00:08, 1.17MB/s]
8%|▊ | 850k/10.7M [00:00<00:04, 2.09MB/s]
13%|█▎ | 1.42M/10.7M [00:00<00:02, 3.19MB/s]
23%|██▎ | 2.50M/10.7M [00:00<00:01, 5.49MB/s]
40%|███▉ | 4.22M/10.7M [00:00<00:00, 9.04MB/s]
58%|█████▊ | 6.23M/10.7M [00:01<00:00, 10.9MB/s]
87%|████████▋ | 9.32M/10.7M [00:01<00:00, 16.5MB/s]
100%|██████████| 10.7M/10.7M [00:01<00:00, 7.58MB/s]
import tempfile
import junifer.testing.registry # noqa: F401
from junifer.api import run
datagrabber = {
"kind": "OasisVBMTestingDataGrabber",
}
markers = [
{
"name": "Schaefer1000x7_TrimMean80",
"kind": "ParcelAggregation",
"parcellation": "Schaefer1000x7",
"method": "trim_mean",
"method_params": {"proportiontocut": 0.2},
},
{
"name": "Schaefer1000x7_Mean",
"kind": "ParcelAggregation",
"parcellation": "Schaefer1000x7",
"method": "mean",
},
{
"name": "Schaefer1000x7_Std",
"kind": "ParcelAggregation",
"parcellation": "Schaefer1000x7",
"method": "std",
},
]
storage = {
"kind": "SQLiteFeatureStorage",
}
with tempfile.TemporaryDirectory() as tmpdir:
uri = f"{tmpdir}/test.sqlite"
storage["uri"] = uri
run(
workdir="/tmp",
datagrabber=datagrabber,
markers=markers,
storage=storage,
)
Total running time of the script: (75 minutes 27.650 seconds)