workflows.dmri.fsl.utils¶
apply_all_corrections()
¶
Combines two lists of linear transforms with the deformation field map obtained typically after the SDC process. Additionally, computes the corresponding bspline coefficients and the map of determinants of the jacobian.
Graph¶
cleanup_edge_pipeline()
¶
Perform some de-spiking filtering to clean up the edge of the fieldmap (copied from fsl_prepare_fieldmap)
Graph¶
b0_average()
¶
A function that averages the b0 volumes from a DWI dataset. As current dMRI data are being acquired with all b-values > 0.0, the lowb volumes are selected by specifying the parameter max_b.
Warning
b0 should be already registered (head motion artifact should be corrected).
compute_readout()
¶
Computes readout time from epi params (see eddy documentation).
Warning
params['echospacing']
should be in sec units.
copy_hdr()
¶
eddy_rotate_bvecs()
¶
Rotates the input bvec file accordingly with a list of parameters sourced
from eddy
, as explained here.
enhance()
¶
extract_bval()
¶
Writes an image containing only the volumes with b-value specified at input
hmc_split()
¶
Selects the reference and moving volumes from a dwi dataset for the purpose of HMC.
insert_mat()
¶
recompose_dwi()
¶
Recompose back the dMRI data accordingly the b-values table after EC correction
recompose_xfm()
¶
Insert identity transformation matrices in b0 volumes to build up a list
reorient_bvecs()
¶
Checks reorientations of in_dwi
w.r.t. old_dwi
and
reorients the in_bvec table accordingly.
rotate_bvecs()
¶
Rotates the input bvec file accordingly with a list of matrices.
Note
the input affine matrix transforms points in the destination image to their corresponding coordinates in the original image. Therefore, this matrix should be inverted first, as we want to know the target position of \vec{r}.
time_avg()
¶
Average the input time-series, selecting the indices given in index
Warning
time steps should be already registered (corrected for head motion artifacts).