dramms_with_ravens: Run DRAMMS with RAVENS option

Description Usage Arguments Value Examples

View source: R/dramms_with_ravens.R

Description

Runs DRAMMS on source and target

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
dramms_with_ravens(
  source,
  target,
  outfile = NULL,
  outdef = NULL,
  retimg = FALSE,
  opts = NULL,
  label,
  labs = NULL,
  ravens_prefix = NULL,
  verbose = TRUE
)

Arguments

source

Filename (or nifti) to match to target

target

Filename (or nifti) to match source to to target

outfile

Output filename

outdef

output deformation field (it will be in template to subject space)

retimg

return nifti object versus output image

opts

Extra arguments to pass to dramms

label

label image in subject space. Note that the label image must be in uint8 (aka byte, or uchar) datatype.

labs

vector of values of the labels in an image. If not specified, will use all labels from label image that are positive and non-zero. Will fail if more than 5.

ravens_prefix

prefix for all RAVENS maps.

verbose

(logical) print out command before running

Value

If retimg = TRUE, a list of nifti objects consisting of the RAVENS images, the output file (template to subject space), and output deformation field (template to subject space). If retimg = FALSE, a list of the filenames of the output image.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
require(fslr)
temp = file.path(fsldir(), "data", "standard", "MNI152_T1_1mm.nii.gz")
# get file
#  https://github.com/muschellij2/FSLR_Data/raw/master/01-Baseline_T1.nii.gz
brain = file.path(fsldir(), "data", "standard", "MNI152_T1_1mm_brain.nii.gz")
res = dramms(source = brain, target = temp, retimg = TRUE)

## End(Not run)

muschellij2/drammsr documentation built on Jan. 18, 2021, 11:24 a.m.