-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ftdc-picsl/longitudinal
Longitudinal processing
- Loading branch information
Showing
6 changed files
with
596 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.