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

Description Usage Arguments Value Author(s) Examples

Description

Subset DTI data based on b-values #'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
subset_dti(
  img,
  bvals,
  bvecs,
  b_step = 1,
  maximum = Inf,
  shells = NULL,
  verbose = TRUE,
  ...
)

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

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

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

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

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

Value

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

Author(s)

John Muschelli muschellij2@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
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)


## End(Not run)

neuroconductor-devel/neurobase documentation built on May 6, 2021, 1:48 p.m.