Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81021967
spm12-mcr
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 3, 20:12
Size
1 KB
Mime Type
text/x-shellscript
Expires
Thu, Sep 5, 20:12 (2 d)
Engine
blob
Format
Raw Data
Handle
20501684
Attached To
R6832 iCAPs public
spm12-mcr
View Options
#!/bin/sh
#
# Command Line Interface for SPM
# SPM: http://www.fil.ion.ucl.ac.uk/spm/
#
# Copyright (C) 2017 Wellcome Trust Centre for Neuroimaging
#
# Guillaume Flandin
# $Id: spm12-mcr 7014 2017-02-13 12:31:33Z guillaume $
if [ "${MCR_HOME}" = "" ]; then
echo "Set MCR_HOME environment variable." >&2
exit 1
fi
if [ ! -d "${MCR_HOME}" ]; then
echo "MCR directory not found." >&2
exit 1
fi
if [ "${SPM_HOME}" = "" ]; then
if [ "${PLATFORM}" = "Darwin" ]; then
RL_FLAG="" # alternative needed
else
RL_FLAG="-f"
fi
SPM_HOME=$(readlink ${RL_FLAG} "$0")
while [ ! -x "${SPM_HOME}/run_spm12.sh" ]; do
if [ "${SPM_HOME}" = "$(dirname "${SPM_HOME}")" ]; then
echo "Set SPM_HOME environment variable." >&2
exit 1
fi
SPM_HOME=$(dirname "${SPM_HOME}")
done
fi
if [ ! -d "${SPM_HOME}" ]; then
echo "SPM MCR directory not found." >&2
exit 1
fi
if [ ! -x "${SPM_HOME}/run_spm12.sh" ]; then
echo "SPM MCR executable not found." >&2
exit 1
fi
${SPM_HOME}/run_spm12.sh ${MCR_HOME} $@
Event Timeline
Log In to Comment