Get the mask volume
Source:R/all_generic.R
, R/cluster_array.R
, R/cluster_experiment.R
, and 1 more
mask-methods.Rd
Get the mask volume
Get the mask object via generic
Usage
mask(x, ...)
# S4 method for class 'H5ClusteredArray'
mask(x)
# S4 method for class 'H5ClusterExperiment'
mask(x)
# S4 method for class 'LatentNeuroVec'
mask(x)
See also
Other H5Cluster:
$,H5ClusterExperiment-method
,
H5ClusterExperiment
,
H5ClusterExperiment-class
,
H5ClusterRun-class
,
H5ClusterRunSummary-class
,
H5ClusteredArray-class
,
[,H5ClusterRun,ANY,ANY,ANY-method
,
[,H5ClusterRun,ANY,missing,ANY-method
,
as.data.frame()
,
as.matrix()
,
close()
,
cluster_metadata,H5ClusterExperiment-method
,
clusters()
,
dim()
,
h5file,H5ClusteredArray-method
,
linear_access-methods
,
make_run_full()
,
make_run_summary()
,
matrix_concat()
,
n_scans,H5ClusterExperiment-method
,
scan_metadata,H5ClusterExperiment-method
,
scan_names,H5ClusterExperiment-method
,
series()
,
series_concat()
,
show,H5ClusterRun-method
Examples
if (FALSE) { # \dontrun{
# For LatentNeuroVec:
if (!is.null(fmristore:::create_minimal_LatentNeuroVec)) {
lnv <- NULL
tryCatch({
lnv <- fmristore:::create_minimal_LatentNeuroVec(space_dims = c(3L,3L,2L))
mask_vol <- mask(lnv)
print(mask_vol)
# if (requireNamespace("neuroim2", quietly=TRUE)) print(is(mask_vol, "LogicalNeuroVol"))
}, error = function(e) {
message("mask example for LatentNeuroVec failed: ", e$message)
})
} else {
message("Skipping mask example for LatentNeuroVec: helper not available.")
}
# For H5ClusterExperiment:
if (!is.null(fmristore:::create_minimal_h5_for_H5ClusterExperiment)) {
temp_exp_file <- NULL
exp_obj <- NULL
tryCatch({
temp_exp_file <- fmristore:::create_minimal_h5_for_H5ClusterExperiment()
exp_obj <- fmristore::H5ClusterExperiment(file_path = temp_exp_file)
mask_vol_exp <- mask(exp_obj)
print(mask_vol_exp)
}, error = function(e) {
message("mask example for H5ClusterExperiment failed: ", e$message)
}, finally = {
if (!is.null(exp_obj)) try(close(exp_obj), silent = TRUE)
if (!is.null(temp_exp_file) && file.exists(temp_exp_file)) {
unlink(temp_exp_file)
}
})
} else {
message("Skipping mask example for H5ClusterExperiment: helper not available.")
}
} # }