aboutsummaryrefslogtreecommitdiff
blob: ddb7cfb675c3d4801177f468deeadac2d76f8c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
diff -Naur fsl.orig/src/fslio/Makefile fsl/src/fslio/Makefile
--- fsl.orig/src/fslio/Makefile	2021-02-01 15:29:34.842752994 -0500
+++ fsl/src/fslio/Makefile	2021-02-01 15:32:19.723761859 -0500
@@ -6,7 +6,7 @@
 
 OBJS=fslio.o
 
-SCRIPTS = remove_ext fsloutputtype imtest imglob imcp imln imrm immv
+SCRIPTS = fsloutputtype imglob imcp immv
 
 all: 
 
diff -Naur fsl.orig/src/fslio/remove_ext fsl/src/fslio/remove_ext
--- fsl.orig/src/fslio/remove_ext	2021-02-01 15:29:34.842752994 -0500
+++ fsl/src/fslio/remove_ext	1969-12-31 19:00:00.000000000 -0500
@@ -1,87 +0,0 @@
-#!/bin/sh
-
-#   remove_ext - remove extension from image filename
-#
-#   Stephen Smith and Mark Jenkinson, FMRIB Image Analysis Group
-#
-#   Copyright (C) 1999-2004 University of Oxford
-#
-#   Part of FSL - FMRIB's Software Library
-#   http://www.fmrib.ox.ac.uk/fsl
-#   fsl@fmrib.ox.ac.uk
-#
-#   Developed at FMRIB (Oxford Centre for Functional Magnetic Resonance
-#   Imaging of the Brain), Department of Clinical Neurology, Oxford
-#   University, Oxford, UK
-#
-#
-#   LICENCE
-#
-#   FMRIB Software Library, Release 6.0 (c) 2018, The University of
-#   Oxford (the "Software")
-#
-#   The Software remains the property of the Oxford University Innovation
-#   ("the University").
-#
-#   The Software is distributed "AS IS" under this Licence solely for
-#   non-commercial use in the hope that it will be useful, but in order
-#   that the University as a charitable foundation protects its assets for
-#   the benefit of its educational and research purposes, the University
-#   makes clear that no condition is made or to be implied, nor is any
-#   warranty given or to be implied, as to the accuracy of the Software,
-#   or that it will be suitable for any particular purpose or for use
-#   under any specific conditions. Furthermore, the University disclaims
-#   all responsibility for the use which is made of the Software. It
-#   further disclaims any liability for the outcomes arising from using
-#   the Software.
-#
-#   The Licensee agrees to indemnify the University and hold the
-#   University harmless from and against any and all claims, damages and
-#   liabilities asserted by third parties (including claims for
-#   negligence) which arise directly or indirectly from the use of the
-#   Software or the sale of any products based on the Software.
-#
-#   No part of the Software may be reproduced, modified, transmitted or
-#   transferred in any form or by any means, electronic or mechanical,
-#   without the express permission of the University. The permission of
-#   the University is not required if the said reproduction, modification,
-#   transmission or transference is done without financial return, the
-#   conditions of this Licence are imposed upon the receiver of the
-#   product, and all original and amended source code is included in any
-#   transmitted product. You may be held legally responsible for any
-#   copyright infringement that is caused or encouraged by your failure to
-#   abide by these terms and conditions.
-#
-#   You are not permitted under this Licence to use this Software
-#   commercially. Use for which any financial return is received shall be
-#   defined as commercial use, and includes (1) integration of all or part
-#   of the source code or the Software into a product for sale or license
-#   by or on behalf of Licensee to third parties or (2) use of the
-#   Software or any derivative of it for research with the final aim of
-#   developing software products for sale or license to a third party or
-#   (3) use of the Software or any derivative of it for research with the
-#   final aim of developing non-software products for sale or license to a
-#   third party, or (4) use of the Software to provide any service to an
-#   external organisation for which payment is received. If you are
-#   interested in using the Software commercially, please contact Oxford
-#   University Innovation ("OUI"), the technology transfer company of the
-#   University, to negotiate a licence. Contact details are:
-#   fsl@innovation.ox.ac.uk quoting Reference Project 9564, FSL.
-export LC_ALL=C
-
-
-if [ $# -lt 1 ] ; then
-  exit 1
-fi
-
-lst="";
-for fn in $@ ; do
-    # for the ones at the end of the line
-  f=`echo "$fn" | sed 's/\.hdr\.gz$//' | sed 's/\.img\.gz$//' | sed 's/\.hdr$//' | sed 's/\.img$//' | sed 's/\.nii.gz$//' | sed 's/\.nii$//' | sed 's/\.mnc.gz$//' | sed 's/\.mnc$//' | sed 's/\.$//'`;
-    # for the ones in the middle of the line
-  f=`echo "$f" | sed 's/\.hdr\.gz[ 	]/ /g' | sed 's/\.img\.gz[ 	]/ /g' | sed 's/\.hdr[ 	]/ /g' | sed 's/\.img[ 	]/ /g' | sed 's/\.nii\.gz[ 	]/ /g' | sed 's/\.nii[ 	]/ /g' | sed 's/\.mnc\.gz[ 	]/ /g' | sed 's/\.mnc[ 	]/ /g' |sed 's/\.[ 	]/ /g'`;
-  lst="$lst $f";
-done
-echo $lst;
-
-
diff -Naur fsl.orig/src/misc_scripts/fsl_abspath fsl/src/misc_scripts/fsl_abspath
--- fsl.orig/src/misc_scripts/fsl_abspath	2021-02-01 15:29:34.828752994 -0500
+++ fsl/src/misc_scripts/fsl_abspath	1969-12-31 19:00:00.000000000 -0500
@@ -1,71 +0,0 @@
-#!/usr/bin/env fslpython
-#   fsl_abspath - return true file path
-#   Matthew Webster FMRIB Image Analysis Group
-#   Copyright (C) 2009 University of Oxford 
-#   Part of FSL - FMRIB's Software Library
-#   http://www.fmrib.ox.ac.uk/fsl
-#   fsl@fmrib.ox.ac.uk
-#
-#   Developed at FMRIB (Oxford Centre for Functional Magnetic Resonance
-#   Imaging of the Brain), Department of Clinical Neurology, Oxford
-#   University, Oxford, UK
-#
-#
-#   LICENCE
-#
-#   FMRIB Software Library, Release 6.0 (c) 2018, The University of
-#   Oxford (the "Software")
-#
-#   The Software remains the property of the Oxford University Innovation
-#   ("the University").
-#
-#   The Software is distributed "AS IS" under this Licence solely for
-#   non-commercial use in the hope that it will be useful, but in order
-#   that the University as a charitable foundation protects its assets for
-#   the benefit of its educational and research purposes, the University
-#   makes clear that no condition is made or to be implied, nor is any
-#   warranty given or to be implied, as to the accuracy of the Software,
-#   or that it will be suitable for any particular purpose or for use
-#   under any specific conditions. Furthermore, the University disclaims
-#   all responsibility for the use which is made of the Software. It
-#   further disclaims any liability for the outcomes arising from using
-#   the Software.
-#
-#   The Licensee agrees to indemnify the University and hold the
-#   University harmless from and against any and all claims, damages and
-#   liabilities asserted by third parties (including claims for
-#   negligence) which arise directly or indirectly from the use of the
-#   Software or the sale of any products based on the Software.
-#
-#   No part of the Software may be reproduced, modified, transmitted or
-#   transferred in any form or by any means, electronic or mechanical,
-#   without the express permission of the University. The permission of
-#   the University is not required if the said reproduction, modification,
-#   transmission or transference is done without financial return, the
-#   conditions of this Licence are imposed upon the receiver of the
-#   product, and all original and amended source code is included in any
-#   transmitted product. You may be held legally responsible for any
-#   copyright infringement that is caused or encouraged by your failure to
-#   abide by these terms and conditions.
-#
-#   You are not permitted under this Licence to use this Software
-#   commercially. Use for which any financial return is received shall be
-#   defined as commercial use, and includes (1) integration of all or part
-#   of the source code or the Software into a product for sale or license
-#   by or on behalf of Licensee to third parties or (2) use of the
-#   Software or any derivative of it for research with the final aim of
-#   developing software products for sale or license to a third party or
-#   (3) use of the Software or any derivative of it for research with the
-#   final aim of developing non-software products for sale or license to a
-#   third party, or (4) use of the Software to provide any service to an
-#   external organisation for which payment is received. If you are
-#   interested in using the Software commercially, please contact Oxford
-#   University Innovation ("OUI"), the technology transfer company of the
-#   University, to negotiate a licence. Contact details are:
-#   fsl@innovation.ox.ac.uk quoting Reference Project 9564, FSL.
-from __future__ import print_function
-import sys
-import os
-
-print (os.path.realpath(sys.argv[1]))
-sys.exit(0)
diff -Naur fsl.orig/src/misc_scripts/Makefile fsl/src/misc_scripts/Makefile
--- fsl.orig/src/misc_scripts/Makefile	2021-02-01 15:29:34.828752994 -0500
+++ fsl/src/misc_scripts/Makefile	2021-02-01 15:32:56.027763811 -0500
@@ -2,6 +2,6 @@
 
 PROJNAME = misc_scripts
 
-SCRIPTS = fslecho regscript remove_vols replace_and_average_fmrib linkbedpost ocmr_preproc correct_and_average eddy_correct Text2Vest Vest2Text AnatomicalAverage fsl_abspath fsl_anat fslFixText
+SCRIPTS = fslecho regscript remove_vols replace_and_average_fmrib linkbedpost ocmr_preproc correct_and_average eddy_correct AnatomicalAverage fsl_anat fslFixText
 
 all:
diff -Naur fsl.orig/src/misc_scripts/Text2Vest fsl/src/misc_scripts/Text2Vest
--- fsl.orig/src/misc_scripts/Text2Vest	2021-02-01 15:29:34.828752994 -0500
+++ fsl/src/misc_scripts/Text2Vest	1969-12-31 19:00:00.000000000 -0500
@@ -1,80 +0,0 @@
-#!/bin/sh
-#   Copyright (C) 2012 University of Oxford
-#
-#   Part of FSL - FMRIB's Software Library
-#   http://www.fmrib.ox.ac.uk/fsl
-#   fsl@fmrib.ox.ac.uk
-#
-#   Developed at FMRIB (Oxford Centre for Functional Magnetic Resonance
-#   Imaging of the Brain), Department of Clinical Neurology, Oxford
-#   University, Oxford, UK
-#
-#
-#   LICENCE
-#
-#   FMRIB Software Library, Release 6.0 (c) 2018, The University of
-#   Oxford (the "Software")
-#
-#   The Software remains the property of the Oxford University Innovation
-#   ("the University").
-#
-#   The Software is distributed "AS IS" under this Licence solely for
-#   non-commercial use in the hope that it will be useful, but in order
-#   that the University as a charitable foundation protects its assets for
-#   the benefit of its educational and research purposes, the University
-#   makes clear that no condition is made or to be implied, nor is any
-#   warranty given or to be implied, as to the accuracy of the Software,
-#   or that it will be suitable for any particular purpose or for use
-#   under any specific conditions. Furthermore, the University disclaims
-#   all responsibility for the use which is made of the Software. It
-#   further disclaims any liability for the outcomes arising from using
-#   the Software.
-#
-#   The Licensee agrees to indemnify the University and hold the
-#   University harmless from and against any and all claims, damages and
-#   liabilities asserted by third parties (including claims for
-#   negligence) which arise directly or indirectly from the use of the
-#   Software or the sale of any products based on the Software.
-#
-#   No part of the Software may be reproduced, modified, transmitted or
-#   transferred in any form or by any means, electronic or mechanical,
-#   without the express permission of the University. The permission of
-#   the University is not required if the said reproduction, modification,
-#   transmission or transference is done without financial return, the
-#   conditions of this Licence are imposed upon the receiver of the
-#   product, and all original and amended source code is included in any
-#   transmitted product. You may be held legally responsible for any
-#   copyright infringement that is caused or encouraged by your failure to
-#   abide by these terms and conditions.
-#
-#   You are not permitted under this Licence to use this Software
-#   commercially. Use for which any financial return is received shall be
-#   defined as commercial use, and includes (1) integration of all or part
-#   of the source code or the Software into a product for sale or license
-#   by or on behalf of Licensee to third parties or (2) use of the
-#   Software or any derivative of it for research with the final aim of
-#   developing software products for sale or license to a third party or
-#   (3) use of the Software or any derivative of it for research with the
-#   final aim of developing non-software products for sale or license to a
-#   third party, or (4) use of the Software to provide any service to an
-#   external organisation for which payment is received. If you are
-#   interested in using the Software commercially, please contact Oxford
-#   University Innovation ("OUI"), the technology transfer company of the
-#   University, to negotiate a licence. Contact details are:
-#   fsl@innovation.ox.ac.uk quoting Reference Project 9564, FSL.
-export LC_ALL=C
-if [ $# -lt 2 ] ; then 
-  echo "`basename $0` <text file> <vest file>"
-  exit 0
-fi
-
-NumPoints=`grep -cve '^\s*$' $1`
-NumWaves=`wc $1 | awk '{ print $2 }'`
-NumWaves=`expr $NumWaves / $NumPoints`
-
-echo /NumWaves $NumWaves    > $2
-echo /NumPoints $NumPoints >> $2
-echo /Matrix               >> $2
-
-cat $1 >> $2
-
diff -Naur fsl.orig/src/misc_scripts/Vest2Text fsl/src/misc_scripts/Vest2Text
--- fsl.orig/src/misc_scripts/Vest2Text	2021-02-01 15:29:34.828752994 -0500
+++ fsl/src/misc_scripts/Vest2Text	1969-12-31 19:00:00.000000000 -0500
@@ -1,71 +0,0 @@
-#!/bin/sh
-#   Copyright (C) 2012 University of Oxford
-#
-#   Part of FSL - FMRIB's Software Library
-#   http://www.fmrib.ox.ac.uk/fsl
-#   fsl@fmrib.ox.ac.uk
-#
-#   Developed at FMRIB (Oxford Centre for Functional Magnetic Resonance
-#   Imaging of the Brain), Department of Clinical Neurology, Oxford
-#   University, Oxford, UK
-#
-#
-#   LICENCE
-#
-#   FMRIB Software Library, Release 6.0 (c) 2018, The University of
-#   Oxford (the "Software")
-#
-#   The Software remains the property of the Oxford University Innovation
-#   ("the University").
-#
-#   The Software is distributed "AS IS" under this Licence solely for
-#   non-commercial use in the hope that it will be useful, but in order
-#   that the University as a charitable foundation protects its assets for
-#   the benefit of its educational and research purposes, the University
-#   makes clear that no condition is made or to be implied, nor is any
-#   warranty given or to be implied, as to the accuracy of the Software,
-#   or that it will be suitable for any particular purpose or for use
-#   under any specific conditions. Furthermore, the University disclaims
-#   all responsibility for the use which is made of the Software. It
-#   further disclaims any liability for the outcomes arising from using
-#   the Software.
-#
-#   The Licensee agrees to indemnify the University and hold the
-#   University harmless from and against any and all claims, damages and
-#   liabilities asserted by third parties (including claims for
-#   negligence) which arise directly or indirectly from the use of the
-#   Software or the sale of any products based on the Software.
-#
-#   No part of the Software may be reproduced, modified, transmitted or
-#   transferred in any form or by any means, electronic or mechanical,
-#   without the express permission of the University. The permission of
-#   the University is not required if the said reproduction, modification,
-#   transmission or transference is done without financial return, the
-#   conditions of this Licence are imposed upon the receiver of the
-#   product, and all original and amended source code is included in any
-#   transmitted product. You may be held legally responsible for any
-#   copyright infringement that is caused or encouraged by your failure to
-#   abide by these terms and conditions.
-#
-#   You are not permitted under this Licence to use this Software
-#   commercially. Use for which any financial return is received shall be
-#   defined as commercial use, and includes (1) integration of all or part
-#   of the source code or the Software into a product for sale or license
-#   by or on behalf of Licensee to third parties or (2) use of the
-#   Software or any derivative of it for research with the final aim of
-#   developing software products for sale or license to a third party or
-#   (3) use of the Software or any derivative of it for research with the
-#   final aim of developing non-software products for sale or license to a
-#   third party, or (4) use of the Software to provide any service to an
-#   external organisation for which payment is received. If you are
-#   interested in using the Software commercially, please contact Oxford
-#   University Innovation ("OUI"), the technology transfer company of the
-#   University, to negotiate a licence. Contact details are:
-#   fsl@innovation.ox.ac.uk quoting Reference Project 9564, FSL.
-export LC_ALL=C
-if [ $# -lt 2 ] ; then 
-  echo "`basename $0` <vest file> <text file>"
-  exit 0
-fi
-sed -e "/\//d" $1 | sed '/^$/d' > $2
-