File: runprogramonimageset.pl

package info (click to toggle)
ants 2.5.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,672 kB
  • sloc: cpp: 85,685; sh: 15,850; perl: 863; xml: 115; python: 111; makefile: 68
file content (22 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl -w
    if ($#ARGV >= 0) { $who = join(' ', $ARGV[0]); }

    opendir(DIR, $who);
    @filelist = glob("$who");
#    @filelist2 = glob("$who2");
    $ct=0;

$dir = `pwd`;
$dir=substr($dir,0,length($dir)-1)."/";

$pathpre="/mnt/aibs1/avants/bin/ants/";
    foreach $name (@filelist)
    {
        $exe = $pathpre."ANTS 3 -m PR[templatecontrol.nii,".$name.",1,2] -o ".$name." -t SyN[3] -r Gauss[2,0] -i 100x100x30 ";
        $exe2 = "/mnt/pkg/sge-root/bin/lx24-x86/qsub -q mac /mnt/data1/avants/Data/code/qsub3.sh  ".$dir." ".$exe." ";
        print "$exe\n";
      system $exe2;
# USE qstat TO VERIFY THE JOB IS SUBMITTED
        $ct=$ct+1;
    }
    closedir(DIR);