aslAveraging: Average ASL tag-control pairs to estimate perfusion

Description Usage Arguments Details Author(s) Examples

View source: R/aslAveraging.R

Description

This function averages arterial spin labeling (ASL) functional MRI tag-control image pairs to estimate perfusion.

Usage

1
2
3
4
5
6
7
8
aslAveraging(
  asl,
  mask = NULL,
  tc = NA,
  nuisance = NA,
  method = "regression",
  ...
)

Arguments

asl

input asl image

mask

in which to calculate perfusion

tc

vector indicating which images are tagged and which are controls. Strongly recommended if using regression or bayesian methods.

nuisance

nuisance covariates to include in regression

method

method to use for computing average. One of sincSubtract, simpleSubtract, cubicSubtract, surroundSubtract, regression, or bayesian. See Details.

...

additional parameters to pass to ASL averaging functions. See Details.

Details

Two major types of methods are available for ASL signal averaging:

For bayesian, two more arguments are required:

These would be as output from atropos; see Examples for a sample usage.

Author(s)

Kandel BM, Avants BB

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
set.seed(1)
nvox <- 8 * 8 * 8 * 10
dims <- c(8, 8, 8, 10)
voxvals <- array(rnorm(nvox) + 500, dim=dims)
asl <- makeImage(dims, voxvals)
tc <- rep(c(-0.5, 0.5), dims[4]/2)
avg <- aslAveraging(asl, tc=tc)
testthat::expect_equal(mean(avg), 0.00739 , tolerance = .1 )
slice <- extractSlice(asl, 4, 4)
mask <-getMask(slice)
seg <- atropos(d=3, a=slice, x=mask, i='kmeans[6]', m='[0.0,1x1x1]')
perfSurr <- aslAveraging( asl, mask = NULL, method = "surroundSubtract" )
bayesAvg <- aslAveraging(asl, tc=tc, method='bayesian',
  segmentation=seg$segmentation, tissuelist=seg$probabilityimages)

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.