You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Construct string containing all relevant citations that will be fed to the argument parser epilog
47
-
ifnotepilog:
48
-
epilog='Relevant citations for tools / algorithms used in this script:\n\n'
49
-
epilog+=entry[0] +':\n'+entry[2] +'\n\n'
49
+
ifrefList:
50
+
refList+='\n'
51
+
refList+=entry[0] +':'+entry[2] +'\n'
50
52
51
53
ifmax_level:
52
54
citationWarning+='Note that this script makes use of commands / algorithms that have relevant articles for citation'
@@ -59,14 +61,18 @@ def initCitations(cmdlist):
59
61
60
62
definitParser(desc):
61
63
importargparse
62
-
globalepilog, parser
64
+
globalparser, refList, standardOptions
65
+
epilog=''
66
+
ifrefList:
67
+
epilog='Relevant citations for tools / algorithms used in this script:\n\n'+refList+'\n'
68
+
epilog+='Author:\n'+author+'\n\nCopyright (C) 2008 Brain Research Institute, Melbourne, Australia. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n'
standard_options.add_argument('-continue', nargs=2, dest='cont', metavar=('<TempDir>', '<LastFile>'), help='Continue the script from a previous execution; must provide the temporary directory path, and the name of the last successfully-generated file')
66
-
standard_options.add_argument('-nocleanup', action='store_true', help='Do not delete temporary directory at script completion')
67
-
standard_options.add_argument('-nthreads', metavar='number', help='Use this number of threads in MRtrix multi-threaded applications (0 disables multi-threading)')
68
-
standard_options.add_argument('-tempdir', metavar='/path/to/tmp/', help='Manually specify the path in which to generate the temporary directory')
standardOptions.add_argument('-continue', nargs=2, dest='cont', metavar=('<TempDir>', '<LastFile>'), help='Continue the script from a previous execution; must provide the temporary directory path, and the name of the last successfully-generated file')
72
+
standardOptions.add_argument('-nocleanup', action='store_true', help='Do not delete temporary directory at script completion')
73
+
standardOptions.add_argument('-nthreads', metavar='number', help='Use this number of threads in MRtrix multi-threaded applications (0 disables multi-threading)')
74
+
standardOptions.add_argument('-tempdir', metavar='/path/to/tmp/', help='Manually specify the path in which to generate the temporary directory')
print ('**Copyright:** Copyright (C) 2008 Brain Research Institute, Melbourne, Australia. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.')
Copy file name to clipboardExpand all lines: scripts/revpe_distcorr
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ from lib.printMessage import printMessage
26
26
fromlib.runCommandimportrunCommand
27
27
fromlib.warnMessageimportwarnMessage
28
28
29
+
lib.app.author='Robert E. Smith (robert.smith@florey.edu.au)'
29
30
lib.app.initCitations([ 'eddy/topup', 'FSL' ])
30
31
lib.app.initParser('Perform EPI distortion correction of a volume series using a reversed phase-encode image pair to estimate the inhomogeneity field')
31
32
lib.app.parser.add_argument('pe_axis', help='The phase encode direction / axis; can be an axis number (0, 1 or 2) or a code (e.g. AP, LR, IS)')
lib.app.initParser('Perform EPI distortion & recombination of a pair of image volumes, where the diffusion gradient table is identical between the two series, but the phase-encode direction is reversed')
37
38
lib.app.parser.add_argument('pe_axis', help='The phase encode direction / axis; can be an axis number (0, 1 or 2) or a code (e.g. AP, LR, IS)')
0 commit comments