Home · Quickstart · Documentation · About · Nipy

# workflows.dmri.fsl.utils

## `apply_all_corrections()`

Link to code

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()`

Link to code

Perform some de-spiking filtering to clean up the edge of the fieldmap (copied from fsl_prepare_fieldmap)

### Graph

## `dwi_flirt()`

Link to code

Generates a workflow for linear registration of dwi volumes

### Graph

## `vsm2warp()`

Link to code

Converts a voxel shift map (vsm) to a displacements field (warp).

### Graph

## `add_empty_vol()`

Link to code

Adds an empty vol to the phase difference image

## `b0_average()`

Link to code

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).

## `b0_indices()`

Link to code

Extract the indices of slices in a b-values file with a low b value

## `compute_readout()`

Link to code

Computes readout time from epi params (see eddy documentation).

Warning

`params['echospacing']` should be in sec units.

## `copy_hdr()`

Link to code

## `demean_image()`

Link to code

Demean image data inside mask

## `eddy_rotate_bvecs()`

Link to code

Rotates the input bvec file accordingly with a list of parameters sourced from `eddy`, as explained here.

## `enhance()`

Link to code

## `extract_bval()`

Link to code

Writes an image containing only the volumes with b-value specified at input

## `hmc_split()`

Link to code

Selects the reference and moving volumes from a dwi dataset for the purpose of HMC.

## `insert_mat()`

Link to code

## `rads2radsec()`

Link to code

Converts input phase difference map to rads

## `recompose_dwi()`

Link to code

Recompose back the dMRI data accordingly the b-values table after EC correction

## `recompose_xfm()`

Link to code

Insert identity transformation matrices in b0 volumes to build up a list

## `remove_comp()`

Link to code

Removes the volume `volid` from the 4D nifti file

## `reorient_bvecs()`

Link to code

Checks reorientations of `in_dwi` w.r.t. `old_dwi` and reorients the in_bvec table accordingly.

## `rotate_bvecs()`

Link to code

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}.

## `siemens2rads()`

Link to code

Converts input phase difference map to rads

## `time_avg()`

Link to code

Average the input time-series, selecting the indices given in index

Warning

time steps should be already registered (corrected for head motion artifacts).