Learn R Programming

ANTsR (version 1.0)

perfusion-predictors: Get perfusion predictors

Description

Get the predictors for perfusion regression from time-series voxels and motion-parameters.

Usage

get_perfusion_predictors( mat , moco_params , xideal = NULL , labelfirst = 1 , ncompcorparameters = 4 )

Arguments

mat

Matrix with a column for every time-series voxel. Number of rows equals the number of time units in the series.

mask

Motion Parameters obtained as results after motion-correction.

xideal

[optional] 1D time-series signal to be used a ideal or model for regression.

labelfirst

[optional] Boolean indicating if the first value is label in every time-series.

ncompcorparameters

[optional] Number of compcorr parameters.

Value

Success -- An R list of named elements containing xideal ( named 'xideal' ) and nuisance parameters ( named 'nuis' ) Failure -- NULL

Examples

Run this code
# NOT RUN {
# mat -- matrix with each column being a time-series voxel
# moco_results -- result of calling 'motion_correction'
# moco_results$moco_params -- motion-correction parameters
predictors <- get_perfusion_predictors( mat , moco_results$moco_params )
predictors$xideal
predictors$nuis
# }

Run the code above in your browser using DataLab