series_roi | R Documentation |
Extract one or more series from object and return as ROI object
Extract one or more series from object
setMethod("series", signature(x="NeuroVecSeq", i="integer"), def=function(x, i, j, k, drop=TRUE) if (missing(j) && missing(k)) # Linear spatial indexing case # Get series from each vector and combine them series_list <- purrr::map(x@vecs, ~ series(., i)) # Stack the matrices vertically do.call(rbind, series_list) else # Voxel coordinate indexing case assertthat::assert_that(length(i) == 1 && length(j) == 1 && length(k) == 1) purrr::map(x@vecs, ~ series(., i, j, k)) purrr::flatten_dbl() )
series_roi(x, i, ...)
series(x, i, ...)
## S4 method for signature 'NeuroVec,matrix'
series(x, i)
## S4 method for signature 'NeuroVec,matrix'
series_roi(x, i)
## S4 method for signature 'NeuroVec,ROICoords'
series(x, i)
## S4 method for signature 'NeuroVec,ROICoords'
series_roi(x, i)
## S4 method for signature 'NeuroVec,LogicalNeuroVol'
series(x, i)
## S4 method for signature 'NeuroVec,NeuroVol'
series(x, i)
## S4 method for signature 'NeuroVec,LogicalNeuroVol'
series_roi(x, i)
## S4 method for signature 'NeuroVec,integer'
series(x, i, j, k, drop = TRUE)
## S4 method for signature 'DenseNeuroVec,integer'
series(x, i, j, k, drop = TRUE)
## S4 method for signature 'NeuroVec,numeric'
series(x, i, j, k)
## S4 method for signature 'NeuroVec,numeric'
series_roi(x, i, j, k)
## S4 method for signature 'NeuroVec,numeric'
series_roi(x, i, j, k)
## S4 method for signature 'NeuroVec,matrix'
series_roi(x, i)
## S4 method for signature 'NeuroVec,LogicalNeuroVol'
series_roi(x, i)
## S4 method for signature 'NeuroVecSeq,numeric'
series(x, i, j, k, drop = TRUE)
## S4 method for signature 'NeuroVecSeq,matrix'
series(x, i)
## S4 method for signature 'NeuroVecSeq,matrix'
series_roi(x, i)
## S4 method for signature 'AbstractSparseNeuroVec,ROICoords'
series(x, i)
## S4 method for signature 'AbstractSparseNeuroVec,matrix'
series(x, i)
## S4 method for signature 'AbstractSparseNeuroVec,numeric'
series(x, i, j, k)
## S4 method for signature 'AbstractSparseNeuroVec,integer'
series(x, i, j, k)
x |
A NeuroVecSeq object |
i |
A matrix of ROI coordinates (n x 3) |
... |
additional arguments |
j |
index for 2nd dimension |
k |
index for 3rd dimension |
drop |
whether to drop dimension of length 1 |
A matrix where each column represents a voxel's time series
A matrix where each column represents a voxel's time series
A ROIVec object containing the time series for the specified ROI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.