assembleSessionBlocks: compute betas from image blocks of bold

Description Usage Arguments Value Author(s) Examples

View source: R/assembleSessionBlocks.R

Description

Computes event-wise betas for each image block and writes to an image

Usage

1
2
3
assembleSessionBlocks(bmask, aalimg, labs, datadir, imagepostfix,
  assembledDesignOutPrefix, assembledImageOutPrefix, dmat, usedesignrow, hrf,
  ncompcor = 6, zscore = TRUE, spatialsmooth = 0)

Arguments

bmask

brain mask - compcor is done within this mask

aalimg

a label image - does not have to be aal

labs

which labels of the above label image to use e.g. c(1,2,3)

datadir

the input data directory

imagepostfix

the image blocks postfix e.g. motioncorr.nii.gz

assembledImageOutPrefix

output file name for assembled bold file - will be read if it already exists (rather than reassembled)

usedesignrow

organizational boolean tracking which parts of the design file have concurrent BOLD images, useful for sanity checks

zscore

should we zscore each voxel?

assembledBlocksOutPrefix

output file name for assembled design file - will be read if it already exists (rather than reassembled)

imat

the current estimate of the assembled image matrix

spatialsmoothing

scalar value greater than or equal to zero that controls voxel-wise smoothing in 4D

Value

list is output containing organizational variables for design matrix

Author(s)

Avants BB, Phillips JS

Examples

1
2
3
4
5
## Not run: 
hrf<-ts( hemodynamicRF( 30, onsets=2, durations=1, rt=0.5,cc=0.1,a1=6,a2=12,b1=0.6, b2=0.6 ) )
assembly2<-assembleSessionBlocks( bmask, aalimg, labs, datadir, imagepostfix,  dfn, afn, dmat, usedesignrow, imat )

## End(Not run)

stnava/RKRNS documentation built on Aug. 26, 2017, 9:55 a.m.