Learn R Programming

neurobase (version 1.32.4)

subset_dti-methods: Subset DTI data based on b-values #'

Description

Subset DTI data based on b-values #'

Usage

subset_dti(
  img,
  bvals,
  bvecs,
  b_step = 1,
  maximum = Inf,
  shells = NULL,
  verbose = TRUE,
  ...
)

# S4 method for nifti subset_dti( img, bvals, bvecs, b_step = 1, maximum = Inf, shells = NULL, verbose = TRUE, ... )

# S4 method for ANY subset_dti( img, bvals, bvecs, b_step = 1, maximum = Inf, shells = NULL, verbose = TRUE, ... )

# S4 method for character subset_dti( img, bvals, bvecs, b_step = 1, maximum = Inf, shells = NULL, verbose = TRUE, ... )

# S4 method for list subset_dti( img, bvals, bvecs, b_step = 1, maximum = Inf, shells = NULL, verbose = TRUE, ... )

Value

List of filenames of image, b-values, and b-vectors that were subsetted.

Arguments

img

character or nifti object

bvals

filename of b-values (assuming 1 row)

bvecs

filename of b-vectors (assuming 3 rows)

b_step

step of b-values to round to

maximum

maximum b-value threshold

shells

Shells to keep (after rounding)

verbose

print diagnostic messages

...

options passed to checkimg

Author

John Muschelli muschellij2@gmail.com

Examples

Run this code
if (FALSE) {
img = "~/Downloads/data.nii.gz"
bvals = "~/Downloads/bvals"
bvecs = "~/Downloads/bvals"
verbose = TRUE
b_step = 50
maximum = 1500
shells = NULL
sub = subset_dti(img = img, bvals = bvals, bvecs = bvecs, 
maximum = 1500,
b_step = 50)

}

Run the code above in your browser using DataLab