Good afternoon, Paul, I hope you are well.
Last week I posted a question about making cortical ROI masks for tractography, which you helped me answer, thank you. I am trying to isolate specific WM tracts such as the uncinate fasciculus, SLF, ILF, IFOF etc. I am doing this by defining the cortical start and end points of these tracts and creating masks so that tractography is only done between these ROI start and end points. Here is how I'm doing it:
#!/bin/tcsh
#UNCINATE FASCICULUS MASK
3dresample \
-master $BASE/$SUBJ/INTERMED/dt_DT.nii.gz \
-inset $BASE/$SUBJ/INTERMED/aparc+aseg.nii.gz \
-rmode NN \
-prefix $BASE/$SUBJ/INTERMED/aparc+aseg_dwi.nii.gz \
-overwrite
#Make mask temporal (LHS)
3dcalc \
-a $BASE/$SUBJ/INTERMED/aparc+aseg_dwi.nii.gz \
-expr 'equals(a,1033)+equals(a,1015)+equals(a,1009)' \
-prefix $BASE/$SUBJ/INTERMED/UF_L_temporal_mask.nii.gz \
-overwrite
#Make mask frontal (LHS)
3dcalc \
-a $BASE/$SUBJ/INTERMED/aparc+aseg_dwi.nii.gz \
-expr 'equals(a,1014)+equals(a,1012)' \
-prefix $BASE/$SUBJ/INTERMED/UF_L_frontal_mask.nii.gz \
-overwrite
#Inflate temporal (LHS)
3dROIMaker \
-inset $BASE/$SUBJ/INTERMED/UF_L_temporal_mask.nii.gz \
-refset $BASE/$SUBJ/INTERMED/UF_L_temporal_mask.nii.gz \
-thresh 0.5 \
-prefix $BASE/$SUBJ/INTERMED/ROI_MAP_temporal \
-volthr 1 \
-inflate 1
#Inflate frontal (LHS)
3dROIMaker \
-inset $BASE/$SUBJ/INTERMED/UF_L_frontal_mask.nii.gz \
-refset $BASE/$SUBJ/INTERMED/UF_L_frontal_mask.nii.gz \
-thresh 0.5 \
-prefix $BASE/$SUBJ/INTERMED/ROI_MAP_frontal \
-volthr 1 \
-inflate 1
#Combine temporal and frontal (LHS)
3dcalc \
-a $BASE/$SUBJ/INTERMED/ROI_MAP_temporal_L_GMI+orig.BRIK.gz \
-b $BASE/$SUBJ/INTERMED/ROI_MAP_frontal_L_GMI+orig.BRIK.gz \
-expr 'a*1 + b*2' \
-prefix $BASE/$SUBJ/INTERMED/ROI_network.nii.gz
### for presentation purposes
time 3dTrackID \
-logic AND \
-mode MINIP \
-alg_Nseed_X 3 \
-alg_Nseed_Y 3 \
-alg_Nseed_Z 3 \
-dti_in $BASE/$SUBJ/INTERMED/dt \
-netrois $BASE/$SUBJ/INTERMED/ROI_network.nii.gz \
-mini_num 5 \
-uncert $BASE/$SUBJ/INTERMED/dt_UNC.nii.gz \
-mask $BASE/$SUBJ/INTERMED/DTI_mask.nii.gz \
-dump_rois AFNI \
-nifti \
-no_indipair_out \
-prefix $BASE/$SUBJ/INTERMED/o.mPR_L \
-do_trk_out \
-overwrite -echo_edu
time 3dTrackID \
-mode PROB \
-netrois $BASE/$SUBJ/INTERMED/ROI_network.nii.gz \
-uncert $BASE/$SUBJ/INTERMED/dt_UNC.nii.gz \
-dti_in $BASE/$SUBJ/INTERMED/dt \
-mask $BASE/$SUBJ/INTERMED/DTI_mask.nii.gz \
-algopt /scratch/brtphi011/control_trial/DTI_scripts_cluster/ALGOPTS_PROB.dat \
-dump_rois AFNI \
-nifti \
-no_indipair_out \
-prefix $BASE/$SUBJ/INTERMED/o.PR_L \
-overwrite -echo_edu
What I want to ask is whether this is the best way to be doing this? I am working with neonate data and have my cortical parcellations (aparc+aseg.nii.gz) from infant freesurfer. The isolated tracts I am getting look generally consistent with the literature but there is just no way for me to quality check my results.
Please could you let me know if you know of any ways I could improve my method?
Warm regards,
Philippa
