This shows you the differences between two versions of the page.
biac:analysis:physiological [2011/10/25 19:19] petty [AFNI] |
biac:analysis:physiological [2023/02/23 18:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Physiological Correction Methods ====== | ||
- | |||
- | Currently this assumes that you have recorded your physiological responses through Cigal. | ||
- | |||
- | There' | ||
- | |||
- | This tools uses various fields from the bxh and pdigm file to output " | ||
- | |||
- | The python tool will call cigal functions directly, then output new text data in the format requested. | ||
- | |||
- | < | ||
- | physio_create.py --help | ||
- | </ | ||
- | |||
- | < | ||
- | physio_create.py --bxh / | ||
- | |||
- | Program to produce formatted physiological data: | ||
- | Data will be corrected and recreated from the pdigm file based on information from run data | ||
- | BXH and PDIGM required | ||
- | OUTPATH defaults to PWD | ||
- | FORMAT: defaults to fsl | ||
- | - fsl = cardio, | ||
- | - npm = time, | ||
- | - afni = cardiac.txt, | ||
- | |||
- | |||
- | Options: | ||
- | -h, --help | ||
- | -b FILE, --bxh=FILE | ||
- | -p FILE, --pdigm=FILE | ||
- | pdigm file for run | ||
- | -f string, --format=string | ||
- | output format ( fsl, | ||
- | -o PATH, --outpath=PATH | ||
- | location to store output files | ||
- | |||
- | </ | ||
- | |||
- | ===== AFNI ===== | ||
- | |||
- | Create the AFNI formated physiological text data. | ||
- | <code bash> | ||
- | |||
- | This would create my " | ||
- | |||
- | Now set-up build the regressors that will be used in afni with their matlab tool. | ||
- | |||
- | <code matlab> | ||
- | addpath / | ||
- | Opt.Respfile = '/ | ||
- | Opt.Cardfile = '/ | ||
- | Opt.VolTR = 1.5 | ||
- | Opt.Nslices = 34 | ||
- | Opt.PhysFS = 100 | ||
- | |||
- | RetroTS(Opt) | ||
- | </ | ||
- | |||
- | The output will be " | ||
- | |||
- | Convert your data to 4D nifti if you haven' | ||
- | <code bash> | ||
- | |||
- | Create the afni script which you will use to actually run the 3dretroicor functionality: | ||
- | <code bash> | ||
- | ss_method ' | ||
- | |||
- | The result of the above command would be a tcsh script, which would run the despiking and 3dretroicor correction only. Run it: | ||
- | <code bash> | ||
- | |||
- | There will be a resulting folder with all the afni data inside. | ||
- | <code bash> | ||
- | #convert afni to nii, create bxh | ||
- | 3dAFNItoNIFTI 12345.results/ | ||
- | fslwrapbxh pb02.12345.r01.ricor.BRIK | ||
- | </ | ||
- | |||
- | Run the resting state pipeline: | ||
- | <code bash> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||