Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9e4025b
Made localization changes to spm8Batch. End users should no longer ne…
dankessler Jul 16, 2012
113665b
updated documentation in installation readme of spm8Batch to cover ne…
dankessler Jul 16, 2012
ab9f55b
The log files for spm8Batch will now include the SHA of the MethodsCo…
dankessler Jul 16, 2012
42e4ef2
Changed scope of .gitignore. No longer ignores all of .local director…
dankessler Jul 16, 2012
9197153
Added mc_releasetag, with current release tag of Prerelease
dankessler Jul 16, 2012
663b66f
log files for spm8Batch will now also include the human readable rele…
dankessler Jul 16, 2012
31d30a3
Merge pull request #82 from dankessler/spm8Batch/LocalizationAutomate
dankessler Jul 17, 2012
a3ceebc
Merge pull request #81 from dankessler/spm8Batch/VersionLogging
dankessler Jul 17, 2012
144e431
Merge pull request #83 from dankessler/core/mc_ReleaseTrackers
dankessler Jul 17, 2012
7db5d99
Merge pull request #96 from dankessler/spm8Batch_pre_beta
dankessler Jul 30, 2012
ccc5c83
Merge remote-tracking branch 'github/universe/develop' into spm8Batch…
dankessler Jul 30, 2012
4516621
Merge pull request #97 from dankessler/spm8Batch_pre_stable
dankessler Jul 30, 2012
c09a04e
Merge pull request #98 from UMPsychMethodsCore/spm8Batch_stable
dankessler Jul 30, 2012
4069b1b
Merge pull request #99 from UMPsychMethodsCore/spm8Batch_stable
dankessler Jul 30, 2012
b2e1037
Corrected 'feature' in warpfMRI about logging, added TR and TGLOBAL o…
rcwelsh Jul 31, 2012
a4b15bd
Merged local spm8Batch/daisyChained with universe/spm8Batch_stable
rcwelsh Jul 31, 2012
2de6610
Added the '-m' option to sliceTime to allow for adding command line o…
rcwelsh Jul 31, 2012
300ff31
Added the 2mm templates to all spm8 versions in the template folder.
Jul 31, 2012
68fcfb6
Added preprocessing documtation to spm8Batch/Help/PreprocessingDoc.pdf
Jul 31, 2012
d641508
added README to help file with link to youtube video and some context
dankessler Jul 31, 2012
a391304
Merge branch 'spm8Batch/addFiles' into spm8Batch/JoeMerge
dankessler Jul 31, 2012
893f254
Merge pull request #104 from rcwelsh/spm8Batch/daisyChained
dankessler Jul 31, 2012
5a934fb
Merge pull request #109 from UMPsychMethodsCore/spm8Batch_alpha
dankessler Jul 31, 2012
57e7cbd
Merge pull request #110 from UMPsychMethodsCore/spm8Batch_beta
dankessler Jul 31, 2012
1061402
updated README with some Methods Core info and release information
mangstad Jul 31, 2012
dd05f30
Merge pull request #112 from UMPsychMethodsCore/core_alpha
dankessler Jul 31, 2012
133ce10
Merge remote-tracking branch 'github/universe/develop' into core_pre_…
dankessler Jul 31, 2012
df1083d
Merge pull request #113 from dankessler/core_pre_stable
dankessler Jul 31, 2012
9726c9c
Merge remote-tracking branches 'github/universe/spm8Batch_stable' and…
dankessler Jul 31, 2012
4939378
updated mc_release tag
dankessler Jul 31, 2012
1546d62
updated spm8BatchVersion release tag
dankessler Jul 31, 2012
644dd6d
Merge pull request #111 from mangstad/ReleaseNotes
dankessler Jul 31, 2012
91cf8bb
Merge remote-tracking branch 'github/dankessler/release/update_tags' …
dankessler Jul 31, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .local/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CurrentVersionSHA
1 change: 1 addition & 0 deletions .local/mc_releasetag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MethodsCore 1.0
53 changes: 52 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
This is the README for the Methods Core
This directory contains a release of the University of Michigan Psychiatry
Neuroimaging Methods Core tools. The version number of the release can be
found in ./.local/mc_releasetag

For help with these tools contact us at MethodsCoreHelp@umich.edu

The goal of the Neuroimaging Methods core is to provide all investigators in
the Department of Psychiatry -- especially junior faculty and young
investigators -- with the latest and best in neuroimaging analysis tools.

The Core consists of Robert Welsh and Chandra Sripada (Co-directors) as well as
Mike Angstadt, Joseph Heffernan, and Daniel Kessler (Research Area Computer
Specialists). An Executive Committee consisting of five PIs from the
department sets the Core's agenda and oversees activities. They are Jon-Kar
Zubieta, Steve Taylor, Israel Liberzon, Mary Heitzeg, and James Swain.

The current (tentative) schedule for upcoming releases is as follows:
August 1st Preprocessing, Registration Checks
September 5th First-Level Script
October 3rd Second-Level Script
November 7th Companion Scripts (PPI, Physio Correction,
Motion Regressor Statistics, ROI Scripts, power
analysis, and others)
December 5th Repeated Measures ANOVA

Our goal is to make sure Methods Core tools are:
*User-friendly including extensive commenting and informative error
messages.

*Integrated and consistent across tools.

*Fast using a variety of methods to reduce disk operations and accelerate
performance.

*Well documented including help files and, in many cases, practical video
documentation.

*Supported by Methods Core personnel at MethodsCoreHelp@umich.edu

*Frequently updated to work with current versions of SPM, FSL, MarsBar, etc.


Please give us your feedback about how we're doing.


Release Notes:

8/1/2012 - Release 1.0
First public release of MethodsCore tools. This release contains a
suite of command-line scripts to preprocess fMRI data as well as
perform several basic data quality checks.

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion spm8Batch/.spm8BatchVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
spm8Batch VBM8 2012-03-13
spm8Batch MethodsCore Release 1.0 2012-08-01
Binary file added spm8Batch/Help/PreprocessingDoc.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions spm8Batch/Help/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
In this folder, you'll find a PDF with a guide on how to use the spm8Batch processing software.

In addition, you can find a Video Tutorial Walkthrough online at http://youtu.be/zy9ECyw5keA

More information is available about the MethodsCore Team and support options in the README file at the top level of the Methods Core Directory
24 changes: 8 additions & 16 deletions spm8Batch/INSTALL_README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# # # # # # # # # # # # # # # # # #
#
# This is the spm8Batch processing system written by Robert C. Welsh, Ann Arbor MI
# This is a modified version of the spm8Batch processing system written by Robert C. Welsh, Ann Arbor MI
#
# Copyright 2002-2012
#
Expand Down Expand Up @@ -29,29 +29,21 @@
#
# INSTALLATION INSTRUCTIONS:
#
# Move the spm8Batch tar distribution file to the directory where you wish the code to
# reside. Then untar using
#
# tar -xvf [tarfile]
#
# Next you will need to adjust your PATH environmental variable to include
# You will need to adjust your PATH environmental variable to include
# the spm8Batch distribution
#
# For bash you can add this to your .bashrc or .bash_profile
#
# export PATH=[spm8Batch_distribution_location]:${PATH}
#
# On tcsh you can add this to your .cshrc file.
# You can do this on the fly by running "source spm8Setup" while in this directory.
# You can also edit your .bashrc, .bash_profile, or /etc/bashrc startup scripts to source this automatically
# for all or just some users.
#
# setenv PATH [spm8Batch_distribution_location]:${PATH}
#
# Next you need to implement the localization changes in spm8Batch_Global that are
# described below. Remember the native language of the spm8Batch system is bash. An
# Remember the native language of the spm8Batch system is bash. An
# excellent site for BASH help is:
#
# http://tldp.org/LDP/abs/html/
#
# You will need to have spm8 distribution
# You will need to have spm8 distribution (Included in this distribution)
#
# You will need to have fsl, at least 4.1.7, it's known to work with 4.1.7 and 4.1.8
#
Expand All @@ -73,7 +65,7 @@
# -----------------------------------------------------------------
# -----------------------------------------------------------------
#
# LOCALIZATION
# LOCALIZATION (No longer needs to be edited. This section retained for developer documentation)
#
# The only file that has to be modified for local distrubution is the scripts "spm8Batch_Global"
#
Expand Down
3 changes: 3 additions & 0 deletions spm8Batch/auxiliary/help/help_case_TGLOBAL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo " -G TGLOBAL change the TGLOBAL parameters for fsl/slicetimer, "
echo " default is 0.50"
echo
6 changes: 4 additions & 2 deletions spm8Batch/auxiliary/help/help_case_flirt_options
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
echo " -m \"flirt options\" enable super debug flag."
echo " -m \"fsl options\" Give options to mcflirt or slicetimer."
echo " Be sure to specify inside of quotes."
echo " do \"mcflirt --help\" for help."
echo " default is \"-cost normcorr -stats -plots\""
echo " do \"slicetimer --help\" for help."
echo " default for mcflirt is \"-cost normcorr -stats -plots\""
echo " default for slicetimer is \"\""
echo
2 changes: 2 additions & 0 deletions spm8Batch/auxiliary/help/help_case_no_background_job
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo " -B run in the foreground, need for daisy chaining jobs."
echo
2 changes: 2 additions & 0 deletions spm8Batch/auxiliary/help/help_case_warpmethod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
echo " -W Enable VBM8 warping for fMRI, you need to run vbm8HiRes first."
echo " Default is to use standard SPM8 normalization."
echo " This will set the output name to 'vbm8_', so use '-w' after"
echo " you specificy '-W' if you wish to use 'w' as the prepend name."
echo
2 changes: 2 additions & 0 deletions spm8Batch/auxiliary/help/help_options_end
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
echo "${helpComment} functional images path : $fmriPATH"
echo "${helpComment} Subject directory : ${SUBJDIR}"
echo
echo "${helpComment} Back(1)/fore(0)ground : ${BACKGROUNDJOBFLAG}"
echo
echo "${helpComment} spm8 is located in : $SPM8B1"
echo "${helpComment} spm8Batch is located in : $SPM8B2"
echo "${helpComment} spm8 patch is located in : $SPM8B3"
Expand Down
6 changes: 6 additions & 0 deletions spm8Batch/auxiliary/help/help_options_start
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"a")
. ${thisDir}/auxiliary/help/help_case_anatomy_path
;;
"B")
. ${thisDir}/auxiliary/help/help_case_no_background_job
;;
"b")
. ${thisDir}/auxiliary/help/help_case_bet_best_flag
;;
Expand All @@ -69,6 +72,9 @@
"f")
. ${thisDir}/auxiliary/help/help_case_functional_path
;;
"G")
. ${thisDir}/auxiliary/help/help_case_TGLOBAL
;;
"g")
. ${thisDir}/auxiliary/help/help_case_BET_gradient
;;
Expand Down
1 change: 1 addition & 0 deletions spm8Batch/auxiliary/help/help_sliceTime_Options
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "${helpComment} Sub-directory : ${subPATH}"
echo "${helpComment} Volume Wildcard : ${volumeWILD}"
echo "${helpComment} fMRI TR : ${TR}"
echo "${helpComment} TGLOBAL : ${TGLOBAL}"
echo "${helpComment} FSLOUTPUTTYPE : ${FSLOUTPUTTYPE}"
echo "${helpComment} Number of runs to realign : ${nRUN}"

Expand Down
4 changes: 4 additions & 0 deletions spm8Batch/auxiliary/initialization_all
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ SLICETIMEROPT=

BATCHCOMMAND=1

# Is this command to run in the background

BACKGROUNDJOBFLAG=1

#
# Now the process specific initialization
#
Expand Down
2 changes: 2 additions & 0 deletions spm8Batch/auxiliary/initialization_sliceTime
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ FSL_COMMENT_B="Slice time correcting subject"

outputName=a

mcOPT=""

#
# all done
#
16 changes: 16 additions & 0 deletions spm8Batch/auxiliary/parse_arguments
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ do
. ${thisDir}/auxiliary/setAnatomyPath
;;

# case_no_background_job
#
# don't launch the job into the background, but run in the foreground,
# this will facilitate daisy-chaining jobs.
#
"B")
. ${thisDir}/auxiliary/setNoBackgroundJob
;;

# case_bet_best_flag
#
# look at the BET best flag
Expand Down Expand Up @@ -107,6 +116,13 @@ do
. ${thisDir}/auxiliary/setFunctionalPath
;;

# case_set_TGLOBAL
#
# Set the TGLOBAL value for slice time
#
"G")
. ${thisDir}/auxiliary/setTGlobalValue
;;
# case_set_BET_gradient
#
# Set the gradient scale for bestBET
Expand Down
7 changes: 7 additions & 0 deletions spm8Batch/auxiliary/setNoBackgroundJob
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# The user wants to run the job in the foreground, only recommended for daisy-chaining.
# We also set the mail account to be null that way jobs in foreground do not by default send
# out email. However, this can be overridden with the -U flag.

BACKGROUNDJOBFLAG=0
USEREMAIL="NOMAIL"
20 changes: 20 additions & 0 deletions spm8Batch/auxiliary/setTGlobalValue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Set the value of TGLOBAL
#
shift
let argn++
if (( $argn >= $args ))
then
echo "Missing parameter for setting TGLOBAL"
. ${thisDir}/auxiliary/exit_w_removal
else
isnumber $1
retVal=$?
if [ "$retVal" != "0" ]
then
echo "TGLOBAL needs to be numeric, you entered : $1"
. ${thisDir}/auxiliary/exit_w_removal
fi
TGLOBAL=`echo $1 | awk '{printf "%2.2f",$1}'`
isnumber $TGLOBAL
fi
4 changes: 4 additions & 0 deletions spm8Batch/auxiliary/shellScriptFinalize
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ echo "# ${execDIR}"
echo "#" >> ${FULLSCRIPTNAME}.sh

BATCHVERSION=`cat ${thisDir}/.spm8BatchVersion`
[[ -f ${thisDir}/../.local/CurrentVersionSHA ]] && mcSHA=`cat ${thisDir}/../.local/CurrentVersionSHA`
[[ -f ${thisDir}/../.local/mc_releasetag ]] && mc_releasetag=`cat ${thisDir}/../.local/mc_releasetag`

echo "# spm8Batch Version : ${BATCHVERSION}" >> ${FULLSCRIPTNAME}.sh
echo "# MethodsCore Release Tag : ${mc_releasetag}" >> ${FULLSCRIPTNAME}.sh
echo "# MethodsCore Repository SHA-ID: $mcSHA" >> ${FULLSCRIPTNAME}.sh
echo "#" >> ${FULLSCRIPTNAME}.sh
echo "# All done" >> ${FULLSCRIPTNAME}.sh
echo "#" >> ${FULLSCRIPTNAME}.sh
Expand Down
20 changes: 16 additions & 4 deletions spm8Batch/auxiliary/shellScriptLaunch
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@ echo "${FULLSCRIPTNAME}.sh" > ${thisDir}/Usage/${SANDBOXHOST}/${theYearMonth}/${

if [ ! "$debugFLAG" == "1" ]
then
echo
echo " Lauching script into background."
echo
nohup ${FULLSCRIPTNAME}.sh &> ${FULLSCRIPTNAME}.log &
if [ "${BACKGROUNDJOBFLAG}" == "1" ]
then
echo
echo " Lauching script into background."
echo
nohup ${FULLSCRIPTNAME}.sh &> ${FULLSCRIPTNAME}.log &
else
echo
echo " Launching script into foreground."
echo
${FULLSCRIPTNAME}.sh &> ${FULLSCRIPTNAME}.log
echo
echo " Script ${FULLSCRIPTNAME}.sh is finished"
echo " Script LOGFILE is : ${FULLSCRIPTNAME}.log"
echo
fi
else
echo
echo " Script can now be launched by hand."
Expand Down
2 changes: 1 addition & 1 deletion spm8Batch/bestBET
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ thisDir=`dirname $theCommand`
thisCommand=`echo $theCommand | awk -F/ '{print $NF}'`

#allowedOptions="aDdfhMnOoRrtUw"
allowedOptions="aDdghMtU"
allowedOptions="aBDdghMtU"

# This piece of code all of the spm8Batch scripts will use
. ${thisDir}/auxiliary/commonCode_AllScriptsStart
Expand Down
2 changes: 1 addition & 1 deletion spm8Batch/coregHiRes
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ thisDir=`dirname $theCommand`
thisCommand=`echo $theCommand | awk -F/ '{print $NF}'`

#allowedOptions="aDdfhMnOoRrtUw" - reslice only is NOT working with other images.
allowedOptions="aDdfhMnOorrtUw"
allowedOptions="aBDdfhMnOorrtUw"

# This piece of code all of the spm8Batch scripts will use
. ${thisDir}/auxiliary/commonCode_AllScriptsStart
Expand Down
2 changes: 1 addition & 1 deletion spm8Batch/coregOverlay
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ thisDir=`dirname $theCommand`
thisCommand=`echo $theCommand | awk -F/ '{print $NF}'`

#allowedOptions="aDdfMnOoRrstUvw"
allowedOptions="aDdfMnOorstUvw"
allowedOptions="aBDdfMnOorstUvw"

# This piece of code all of the spm8Batch scripts will use
. ${thisDir}/auxiliary/commonCode_AllScriptsStart
Expand Down
19 changes: 6 additions & 13 deletions spm8Batch/isnumber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,15 @@ isdigit()
fi
}

# New code for determining is an input is a number - 2012-07-27 - RCWelsh

isnumber () # Test if the parameter is a number (integer or float)
{
retVal=1;
nPeriod=`echo $1 | awk -F . '{print NF}'`
if [ "$nPeriod" -ne "1" -a "$nPeriod" -ne "2" ]
then
return $FAILURE
fi
theNumber=`echo $1 | sed 's/\.//g' `
isdigit $theNumber
# do it by trying to printf the number fo get error if bad
printf "%2.2f" $1 2> /dev/null > /dev/null
retVal=$?
if [ "$retVal" == "0" ]
then
return $SUCCESS
else
return $FAILURE
fi
return $retVal
}


11 changes: 11 additions & 0 deletions spm8Batch/matlabScripts/UMBatchWarpVBM8.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@

[Images2WriteUnique Images2WriteCount] = uniqueNII(Images2Write);

% If the prefix is "w" then we just need to report the images that
% vbm8 has already generated. - RCWelsh 2012-07-27
tmpNewImages2WriteUnique = [];

for iNII = 1:size(Images2WriteUnique,1)
[d1 d2 d3 d4] = spm_fileparts(strtrim(Images2WriteUnique(iNII,:)));
newFile = fullfile(d1,['w' d2 d3]);
Expand All @@ -229,6 +233,9 @@
fprintf('\n\n* * * * * * * * * * * * \n\n');
return
end
% If the prefix is "w" then we just need to report the images that
% vbm8 has already generated. - RCWelsh 2012-07-27
tmpNewImages2WriteUnique = strvcat(tmpNewImages2WriteUnique, newFile);
end

% Everything up to this point is okay
Expand All @@ -253,6 +260,10 @@
end
newImages2WriteUnique = strvcat(newImages2WriteUnique, newFile);
end
else
% If the prefix is "w" then we just need to report the images that
% vbm8 has already generated. - RCWelsh 2012-07-27
newImages2WriteUnique = tmpNewImages2WriteUnique;
end

ImageDirectory = fileparts(Images2Write(1,:));
Expand Down
Loading