Diff of DataProcessing3T


[[FolderStructure]]
#contents

###--- Under construction ---###

*Individual data processing [#pef15607]
 >dcms2sdt 0007 <RET> : dicom to sdt data conversion(unifying the multiple dicom files and doing demosaic)
 The data type of output sdt/spr files is float.

 If you want to transfer the data to the other software,
 >sdt2nii m0007 <RET>
 Then NIFTI-1 format file is ready as all.nii

For the data overlaying, MRIcro, fsleyes , freeview, etc. can be used.

*All data processing [#pef15607]
 >dcmall <RET>
 Process all of the folders(00??) and make sdt/spr files.
a

*EPI data(fMRI data) [#e4ecc099]
Making peak.bit files
 car_anlz 170101-01.car +<RET>
 Now you get acq.peak.bit, cardio.peak.bit and respir.peak.bit.
 (You can still use the old 'peak' command to make the bit files)

Edit the acq.peak.bit file
 start from m0007.sdt/spr and peak.bit files
 You need to correct the acq.peak.bit file.
 >acqbitc acq.peak.bit acq.peak.new.bit 37<RET>
 The number, N=37,  need to be adjusted to fit to your data. The acquisition pulses were recorded for individual volumes but we need to have same number of triggers as the number of acquisition(e.g. number of slices(or slice sets for MB) x number of volumes). It must be equal to the number of timing recorded as mosaic_timmng. We'll put the number of additional triggers, so in N=37 case,38 triggers were prepared for each volumes after the acqbitc processing.

Main postprocessing
 mcafni m0007<RET> Motion correction by afni. mc2dafni is also available for 2d motion correction.
 glmdenoise m0007-aMC +<RET> Remove the spike or the step noise caused by subject's motion
 despike m0007-aMC_gdn<RET> Remove the slow drift and sharp spikes
 physiofix m0007-aMC_gdnDs acq.peak.new.bit resp.peak.bit card.peak.bit<RET> Retrospective physiological noise removal
 ssc2 m0007-aMC_gdnDs-pp<RET> Slice scan time correction
 ...
 (sdtt, sdtcc, sdtglm,...)
*Subject motion check [#kc585187]
After mcafni, we have *.mc.1D ascii files as results for the motion correction. "mcchk" detects motion error on the files.
 >>mcchk 2 2 2 3 3 3<RET> 2deg for rotation, 3 degree for translation (maximum motion size test)
 >>mcchk -2 2 -2 2 -2 2 -3 3 -3 3 -3 3<RET> Absolute motion value test. If the motion goes beyond the setting, report it.

*DTI data [#m10b97c3]
 To make gradient table file,
 >dcms2gtb<RET>
 Then grd.txt has gradient(x,y,z)  and b-value
 You can use this for Diffusion Toolkit(Trackvis).
 This procedure is likely unnecessary because Diffusion Toolkit has standard Siemens gradient setting as defaults.
 >gtbrot grd.txt d0003.spr<RET>
 gtbrot rotates the vectors in the gradient table and make grdR.txt as the output.

*Surface rendering  of T1W anatomical data with [[FreeSurfer]] [#ze5a1b3c]
 >recon-all -i d0010.nii -s subject_ID -all <RET>
 >recon-all -i d0010.nii -s subject_ID -all -hires -openmp 12<RET>

 To check your processed data, you can do...
 >fschk subject_ID<RET>   (Check the volume segmentation results with the rendered surface)
 >fschk subject_ID s<RET> (Check the surfaces with the maps  [Alt+c to toggle maps])

*DICOM parameter meanings [#d404a885]
||0051:1016||0051:1019|h
|Abbreviation|Image Type|Abbreviation|Image Type|
|p(x)|Grappa acceleration factor x|SAT (y) | Number of saturation regions|
|P(x)|Sense with acceleration factor x|PFP|  Partial Fourier for Phase(it's PPF in the manual)|
|NORM|Normalization(Prescan image normalization or coil sensitivity normalization)|A(y)|Number of averages|
|DIS2D|2D distortion correction|IR | Inversion recovery|
|DIS3D|3D distortion correction|FS|fat saturation|
|ND|non-distortion correction image|WE|Water excitation|
|M|Rephased image (magnitude image)|WS|Water saturation|
|BLACK IMAGE|Graphic image or Graphics and table image|DB | Dark blood|
|AVERAGE|VRT image|ADD|Image resulting from an addition|
|ADC|Apparent Diffusion Coefficient Map|SR |Saturation recovery|
|||G(x) |Grid tag with x mm grid distance|
|||L (x) |Line tag with x mm line distance|
|||MT | MTC pulse|