Build an fmri_frame from a latent (basis) decomposition
Source:R/fmri_frame_helpers.R
latent_frame.RdA fmristore::LatentNeuroVec stores temporal scores (time by component)
and spatial loadings (voxel by component). This helper places the scores in
the assay and the loadings in a fmridataset::basis_space() whose parent
is the mask's volume_space, so fmrireg's latent engines can fit in
component space and reconstruct voxel maps through
fmridataset::basis_synthesis().
Arguments
- x
A
fmristore::LatentNeuroVec, or a list with elementsbasis(time by component scores),loadings(masked-voxel by component), andmask(aneuroim2::LogicalNeuroVol).- TR
Repetition time in seconds; one value, or one per run.
- run_length
Volumes per run; defaults to a single run spanning all score rows.
- event_table, censor
As in
matrix_frame().- assay
Name of the assay.