-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.pl
43 lines (31 loc) · 821 Bytes
/
run.pl
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
#!/usr/bin/perl -w
#
# Wrapper script, just figures out if longitudinal and then runs
# the appropriate script.
use strict;
use Getopt::Long;
my $runLongitudinal = 0;
if ($#ARGV < 0) {
print qq{
antsct-aging run script
For help, run with "--help" or "--longitudinal --help".
};
exit 1;
}
my $printHelp = 0;
Getopt::Long::Configure("pass_through");
GetOptions("help" => \$printHelp,
"longitudinal" => \$runLongitudinal);
if ($printHelp) {
if ($runLongitudinal) {
system("/opt/scripts/runAntsLongCT_nonBIDS.pl --help");
} else {
system("/opt/scripts/runAntsCT_nonBIDS.pl --help");
}
exit 0;
}
if ($runLongitudinal) {
system("/opt/scripts/runAntsLongCT_nonBIDS.pl --longitudinal @ARGV");
} else {
system("/opt/scripts/runAntsCT_nonBIDS.pl @ARGV");
}