Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ludovica Griffanti
C-MORE brain MRI
Commits
ced5b36d
Commit
ced5b36d
authored
Jun 16, 2021
by
Christoph Arthofer
Browse files
Delete cmore_inverseWarpLabel.sh
parent
75d2d607
Changes
1
Hide whitespace changes
Inline
Side-by-side
OB_pipeline/cmore_inverseWarpLabel.sh
deleted
100644 → 0
View file @
75d2d607
#!/bin/bash
#$ -cwd -j y
#$ -r y
echo
`
date
`
: Executing task
${
SGE_TASK_ID
}
of job
${
JOB_ID
}
on
`
hostname
`
as user
${
USER
}
echo
SGE_TASK_FIRST
=
${
SGE_TASK_FIRST
}
,
SGE_TASK_LAST
=
${
SGE_TASK_LAST
}
,
SGE_TASK_STEPSIZE
=
${
SGE_TASK_STEPSIZE
}
.
~/.bash_profile
.
$MODULESHOME
/init/bash
module load fsl/6.0.3
ID_PATH
=
$1
REF_PATH
=
$2
WARP_PATH
=
$3
AFF_PATH
=
$4
LABEL_IN_PATH
=
$5
LABEL_OUT_PATH
=
$6
IMG_IN_ID
=
$(
awk
'NR=='
${
SGE_TASK_ID
}
${
ID_PATH
}
)
printf
-v
REF_PATH
${
REF_PATH
}
${
IMG_IN_ID
}
printf
-v
WARP_PATH
${
WARP_PATH
}
${
IMG_IN_ID
}
printf
-v
LABEL_OUT_PATH
${
LABEL_OUT_PATH
}
${
IMG_IN_ID
}
printf
-v
AFF_PATH
${
AFF_PATH
}
${
IMG_IN_ID
}
echo
"applywarp --ref=
${
REF_PATH
}
--in=
${
LABEL_IN_PATH
}
--warp=
${
WARP_PATH
}
--postmat=
${
AFF_PATH
}
--out=
${
LABEL_OUT_PATH
}
--interp=trilinear"
applywarp
--ref
=
${
REF_PATH
}
--in
=
${
LABEL_IN_PATH
}
--warp
=
${
WARP_PATH
}
--postmat
=
${
AFF_PATH
}
--out
=
${
LABEL_OUT_PATH
}
--interp
=
trilinear
rv
=
$?
echo
`
date
`
: task
complete
exit
$rv
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment