dramms: Run DRAMMS

Description Usage Arguments Value Examples

View source: R/dramms.R

Description

Runs DRAMMS on source and target

Usage

1
2
3
4
5
6
7
8
9
dramms(
  source,
  target,
  outfile = NULL,
  outdef = NULL,
  retimg = FALSE,
  opts = 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

retimg

return nifti object versus output image

opts

Extra arguments to pass to dramms

verbose

(logical) print out command before running

Value

If retimg = TRUE, a nifti object. If retimg = FALSE, a the filename 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.