Subset DTI data based on b-values #'
subset_dti(
img,
bvals,
bvecs,
b_step = 1,
maximum = Inf,
shells = NULL,
verbose = TRUE,
...
)
# S4 method for class 'nifti'
subset_dti(
img,
bvals,
bvecs,
b_step = 1,
maximum = Inf,
shells = NULL,
verbose = TRUE,
...
)
# S4 method for class 'ANY'
subset_dti(
img,
bvals,
bvecs,
b_step = 1,
maximum = Inf,
shells = NULL,
verbose = TRUE,
...
)
# S4 method for class 'character'
subset_dti(
img,
bvals,
bvecs,
b_step = 1,
maximum = Inf,
shells = NULL,
verbose = TRUE,
...
)
# S4 method for class 'list'
subset_dti(
img,
bvals,
bvecs,
b_step = 1,
maximum = Inf,
shells = NULL,
verbose = TRUE,
...
)character or nifti object
filename of b-values (assuming 1 row)
filename of b-vectors (assuming 3 rows)
step of b-values to round to
maximum b-value threshold
Shells to keep (after rounding)
print diagnostic messages
options passed to checkimg
List of filenames of image, b-values, and b-vectors that were subsetted.
if (FALSE) { # \dontrun{
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)
} # }