Description Usage Arguments Value Author(s) Examples
Will motion correct, run compcorr and estimate global signal. Outputs a list with the time series data matrix (time by voxels), motion and other nuisance variables, global signal (for BOLD or ASL), the mask and the average time series image. Meant to be used before filterfMRIforNetworkAnalysis or any other results-oriented processing.
1 | output<-getfMRInuisanceVariables( boldImageOrFileName, maskThresh=100 , moreaccurate=T, mask = myfMRImask )
|
boldImageOrFileName |
input antsImage or filename |
maskThresh |
will use this intensity threshold to estimate a mask otherwise will use the mask passed in |
mask |
binary image masking the intput image |
outputs list described above.
Avants BB
1 2 3 4 5 6 7 8 9 10 | # set moreaccurate=T for final results
dd<-getfMRInuisanceVariables( bold, maskThresh=100 , moreaccurate=F )
tsResid<-residuals( lm( dd$matrixTimeSeries ~ dd$globalsignal + dd$nuisancevariables ))
mynetwork<-filterfMRIforNetworkAnalysis( tsResid , tr=4, mask=dd$mask ,cbfnetwork = "BOLD", labels = aalImageLabels , graphdensity = 0.25 )
# use colnames( dd$nuisancevariables ) to see nuisance variables
ee<-getfMRInuisanceVariables( pcasl, mask = pcaslmask , moreaccurate=F )
tsResid<-residuals( lm( ee$matrixTimeSeries ~ ee$globalsignalASL + ee$nuisancevariables ))
myASLnetwork<-filterfMRIforNetworkAnalysis( tsResid , tr=4, mask=ee$mask ,cbfnetwork = "ASLCBF", labels = aal2asl , graphdensity = 0.25 )
# use colnames( dd$nuisancevariables ) to see nuisance variables
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.