Skip to content

Commit

Permalink
Merge pull request #8 from Washington-University/7THCP
Browse files Browse the repository at this point in the history
Merge 7T HCP changes along with some Prisma 3T changes into master
  • Loading branch information
tbbrown committed Apr 2, 2015
2 parents c08c02c + c6d2f2e commit b4ee2c0
Show file tree
Hide file tree
Showing 40 changed files with 3,556 additions and 1,675 deletions.
662 changes: 362 additions & 300 deletions DiffusionPreprocessing/DiffPreprocPipeline.sh

Large diffs are not rendered by default.

529 changes: 326 additions & 203 deletions DiffusionPreprocessing/DiffPreprocPipeline_Eddy.sh

Large diffs are not rendered by default.

536 changes: 297 additions & 239 deletions DiffusionPreprocessing/DiffPreprocPipeline_PostEddy.sh

Large diffs are not rendered by default.

830 changes: 451 additions & 379 deletions DiffusionPreprocessing/DiffPreprocPipeline_PreEddy.sh

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion DiffusionPreprocessing/scripts/DiffusionToStructural.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ BiasField=`getopt1 "--biasfield" $@` # "$8" #Bias_Field_acpc_dc
InputBrainMask=`getopt1 "--brainmask" $@` # "$9" #Freesurfer Brain Mask, e.g. brainmask_fs
GdcorrectionFlag=`getopt1 "--gdflag" $@` # "$10"#Flag for gradient nonlinearity correction (0/1 for Off/On)
DiffRes=`getopt1 "--diffresol" $@` # "$11"#Diffusion resolution in mm (assume isotropic)
dof=`getopt1 "--dof" $@` # Degrees of freedom for registration to T1w (defaults to 6)

# Output Variables
T1wOutputDirectory=`getopt1 "--datadiffT1wdir" $@` # "$12" #Path to T1w space diffusion data (for producing output)
RegOutput=`getopt1 "--regoutput" $@` # "$13" #Temporary file for sanity checks
QAImage=`getopt1 "--QAimage" $@` # "$14" #Temporary file for sanity checks

# Set default option values
dof=`defaultopt $dof 6`

echo $T1wOutputDirectory

# Paths for scripts etc (uses variables defined in SetUpHCPPipeline.sh)
Expand All @@ -53,7 +57,7 @@ regimg="nodif"
${FSLDIR}/bin/imcp "$T1wBrainImage" "$WorkingDirectory"/"$T1wBrainImageFile"

#b0 FLIRT BBR and bbregister to T1w
${FSLDIR}/bin/epi_reg --epi="$DataDirectory"/"$regimg" --t1="$T1wImage" --t1brain="$WorkingDirectory"/"$T1wBrainImageFile" --out="$WorkingDirectory"/"$regimg"2T1w_initII
${GlobalScripts}/epi_reg_dof --dof=${dof} --epi="$DataDirectory"/"$regimg" --t1="$T1wImage" --t1brain="$WorkingDirectory"/"$T1wBrainImageFile" --out="$WorkingDirectory"/"$regimg"2T1w_initII

${FSLDIR}/bin/applywarp --rel --interp=spline -i "$DataDirectory"/"$regimg" -r "$T1wImage" --premat="$WorkingDirectory"/"$regimg"2T1w_initII_init.mat -o "$WorkingDirectory"/"$regimg"2T1w_init.nii.gz
${FSLDIR}/bin/applywarp --rel --interp=spline -i "$DataDirectory"/"$regimg" -r "$T1wImage" --premat="$WorkingDirectory"/"$regimg"2T1w_initII.mat -o "$WorkingDirectory"/"$regimg"2T1w_initII.nii.gz
Expand Down
Loading

0 comments on commit b4ee2c0

Please sign in to comment.