Skip to content

Commit aa30290

Browse files
committed
ENH: change spm12 path to new location
1 parent 5f26334 commit aa30290

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

notebooks/advanced_spmmcr.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outputs": [],
1717
"source": [
1818
"from nipype.interfaces import spm\n",
19-
"matlab_cmd = '/opt/spm12/run_spm12.sh /opt/mcr/v92/ script'\n",
19+
"matlab_cmd = '/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94/ script'\n",
2020
"spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)"
2121
]
2222
},

notebooks/basic_error_and_crashes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
"\n",
452452
"```python\n",
453453
"from nipype.interfaces.matlab import MatlabCommand\n",
454-
"MatlabCommand.set_default_paths('/usr/local/MATLAB/R2017a/toolbox/spm12')\n",
454+
"MatlabCommand.set_default_paths('/opt/spm12-dev/spm12_mcr/spm/spm12')\n",
455455
"```"
456456
]
457457
},

notebooks/example_normalize.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
"# Smoothing withds used during preprocessing\n",
352352
"fwhm = [4, 8]\n",
353353
"\n",
354-
"template = '/opt/spm12/spm12_mcr/spm/spm12/tpm/TPM.nii'"
354+
"template = '/opt/spm12-dev/spm12_mcr/spm/spm12/tpm/TPM.nii'"
355355
]
356356
},
357357
{

notebooks/handson_analysis.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"\n",
4848
"# Specify which SPM to use\n",
4949
"from nipype.interfaces.matlab import MatlabCommand\n",
50-
"MatlabCommand.set_default_paths('/opt/spm12/spm12_mcr/spm/spm12')"
50+
"MatlabCommand.set_default_paths('/opt/spm12-dev/spm12_mcr/spm/spm12')"
5151
]
5252
},
5353
{
@@ -520,7 +520,7 @@
520520
"from nipype.interfaces.spm import Normalize12\n",
521521
"\n",
522522
"# Location of the template\n",
523-
"template = '/opt/spm12/spm12_mcr/spm/spm12/tpm/TPM.nii'"
523+
"template = '/opt/spm12-dev/spm12_mcr/spm/spm12/tpm/TPM.nii'"
524524
]
525525
},
526526
{
@@ -970,7 +970,7 @@
970970
"outputs": [],
971971
"source": [
972972
"# Load GM probability map of TPM.nii\n",
973-
"img = nb.load('/opt/spm12/spm12_mcr/spm/spm12/tpm/TPM.nii')\n",
973+
"img = nb.load('/opt/spm12-dev/spm12_mcr/spm/spm12/tpm/TPM.nii')\n",
974974
"GM_template = nb.Nifti1Image(img.get_data()[..., 0], img.affine, img.header)\n",
975975
"\n",
976976
"# Plot normalized subject anatomy\n",
@@ -1039,7 +1039,7 @@
10391039
"\n",
10401040
"# Specify which SPM to use\n",
10411041
"from nipype.interfaces.matlab import MatlabCommand\n",
1042-
"MatlabCommand.set_default_paths('/opt/spm12/spm12_mcr/spm/spm12')"
1042+
"MatlabCommand.set_default_paths('/opt/spm12-dev/spm12_mcr/spm/spm12')"
10431043
]
10441044
},
10451045
{
@@ -1300,7 +1300,7 @@
13001300
"outputs": [],
13011301
"source": [
13021302
"%%bash\n",
1303-
"TEMPLATE='/opt/spm12/spm12_mcr/spm/spm12/tpm/TPM.nii'\n",
1303+
"TEMPLATE='/opt/spm12-dev/spm12_mcr/spm/spm12/tpm/TPM.nii'\n",
13041304
"\n",
13051305
"# Extract the first volume with `fslroi`\n",
13061306
"fslroi $TEMPLATE GM_PM.nii.gz 0 1\n",

notebooks/handson_preprocessing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"\n",
7676
"# Specify which SPM to use\n",
7777
"from nipype.interfaces.matlab import MatlabCommand\n",
78-
"MatlabCommand.set_default_paths('/opt/spm12/spm12_mcr/spm/spm12')"
78+
"MatlabCommand.set_default_paths('/opt/spm12-dev/spm12_mcr/spm/spm12')"
7979
]
8080
},
8181
{
@@ -471,7 +471,7 @@
471471
"outputs": [],
472472
"source": [
473473
"# Use the following tissue specification to get a GM and WM probability map\n",
474-
"tpm_img ='/opt/spm12/spm12_mcr/spm/spm12/tpm/TPM.nii'\n",
474+
"tpm_img ='/opt/spm12-dev/spm12_mcr/spm/spm12/tpm/TPM.nii'\n",
475475
"tissue1 = ((tpm_img, 1), 1, (True,False), (False, False))\n",
476476
"tissue2 = ((tpm_img, 2), 1, (True,False), (False, False))\n",
477477
"tissue3 = ((tpm_img, 3), 2, (True,False), (False, False))\n",

0 commit comments

Comments
 (0)