Perfusion ========= Perfusion is the study of blood flow within the brain. This module contains tools to calculate Cerebral Blood Flow (CBF), the Oxygen Extraction Fraction (OEF), and Z-shimming. The following commands are available: * `qi asl`_ * `qi ase_oef`_ * `qi zshim`_ qi asl ------ This command implements the standard equation to calculate Cerebral Blood Flow (CBF) in units of ml/100 g/minute from either Continuous or pseudo-Continuous Arterial Spin Labelling data (CASL or pCASL). For the exact equation used, see the first reference below. .. image:: cbf.png :alt: A Rodent CBF Map **Example Command Line** .. code-block:: bash qi asl asl_file.nii.gz --blood=2.429 --alpha=0.9 --average --slicetime --pd=reference_file.nii.gz `_ - `High-field blood T1 times `_ qi ase_oef ---------- Estimates the Oxygen Extraction Fraction (OEF) from Asymmetric Spin-Echo (ASE) data using the Blockley model. If the signal evolution each side of a spin-echo in the presence of blood vessels is observed carefully, it does not display simple monoexponential T2* decay close to the echo, but is instead quadratically exponential. By measuring the T2* decay in the linear regime using an ASE sequence, it is possible to extrapolate back to the echo and obtain an estimate of what the signal would be if no blood was presence. The difference between this and the observed signal can be attributed to the Deoxygenated Blood Volume (DBV), and from there the OEF can be calculated. **Example Command Line** .. code-block:: bash qi ase_oef ase_file.nii.gz --B0=9.4 `_ qi zshim -------- Performs Z-shimming to compensate for signal loss due to through-slice dephasing. Combines data acquired with multiple Z-shim gradients using a root-sum-of-squares approach. **Example Command Line** .. code-block:: bash qi zshim zshimmed_file.nii.gz --zshims=8 --yshims=1 Does not read input from ``stdin``. The input file should contain data acquired with multiple Z-shim (and optionally Y-shim) gradients, concatenated into a single 4D file. **Outputs** * ``{input}_zshim.nii.gz`` - The combined image after Z-shimming. *Important Options* * ``--zshims, -z`` Number of Z-shims. Default is 8. * ``--yshims, -y`` Number of Y-shims. Default is 1. * ``--zdrop`` Number of Z-shims to drop from each end. Default is 0. * ``--ydrop`` Number of Y-shims to drop from each end. Default is 0. * ``--noiseregion, -n`` Specify a region to measure and subtract noise. The argument is a region specification string. * ``--threads, -T`` Use N threads (default is hardware limit or ``$QUIT_THREADS``). * ``--out, -o`` Add a prefix to output filenames.