|
50 | 50 | "\n",
|
51 | 51 | "# Specify which SPM to use\n",
|
52 | 52 | "from nipype.interfaces.matlab import MatlabCommand\n",
|
53 |
| - "MatlabCommand.set_default_paths('/opt/spm12-r7219/spm12_mcr/spm/spm12')" |
| 53 | + "MatlabCommand.set_default_paths('/opt/spm12-r7219/spm12_mcr/spm12')" |
54 | 54 | ]
|
55 | 55 | },
|
56 | 56 | {
|
|
523 | 523 | "from nipype.interfaces.spm import Normalize12\n",
|
524 | 524 | "\n",
|
525 | 525 | "# Location of the template\n",
|
526 |
| - "template = '/opt/spm12-r7219/spm12_mcr/spm/spm12/tpm/TPM.nii'" |
| 526 | + "template = '/opt/spm12-r7219/spm12_mcr/spm12/tpm/TPM.nii'" |
527 | 527 | ]
|
528 | 528 | },
|
529 | 529 | {
|
|
973 | 973 | "outputs": [],
|
974 | 974 | "source": [
|
975 | 975 | "# Load GM probability map of TPM.nii\n",
|
976 |
| - "img = nb.load('/opt/spm12-r7219/spm12_mcr/spm/spm12/tpm/TPM.nii')\n", |
| 976 | + "img = nb.load('/opt/spm12-r7219/spm12_mcr/spm12/tpm/TPM.nii')\n", |
977 | 977 | "GM_template = nb.Nifti1Image(img.get_data()[..., 0], img.affine, img.header)\n",
|
978 | 978 | "\n",
|
979 | 979 | "# Plot normalized subject anatomy\n",
|
|
1042 | 1042 | "\n",
|
1043 | 1043 | "# Specify which SPM to use\n",
|
1044 | 1044 | "from nipype.interfaces.matlab import MatlabCommand\n",
|
1045 |
| - "MatlabCommand.set_default_paths('/opt/spm12-r7219/spm12_mcr/spm/spm12')" |
| 1045 | + "MatlabCommand.set_default_paths('/opt/spm12-r7219/spm12_mcr/spm12')" |
1046 | 1046 | ]
|
1047 | 1047 | },
|
1048 | 1048 | {
|
|
1303 | 1303 | "outputs": [],
|
1304 | 1304 | "source": [
|
1305 | 1305 | "%%bash\n",
|
1306 |
| - "TEMPLATE='/opt/spm12-r7219/spm12_mcr/spm/spm12/tpm/TPM.nii'\n", |
| 1306 | + "TEMPLATE='/opt/spm12-r7219/spm12_mcr/spm12/tpm/TPM.nii'\n", |
1307 | 1307 | "\n",
|
1308 | 1308 | "# Extract the first volume with `fslroi`\n",
|
1309 | 1309 | "fslroi $TEMPLATE GM_PM.nii.gz 0 1\n",
|
|
0 commit comments