Extract data from H5ParcellatedScan with missing j parameter
Source:R/cluster_array.R
, R/h5neurovec.R
, R/labeled_vec.R
, and 1 more
extract-methods.Rd
Extracts data from an H5ParcellatedScan
object when only the first index is provided.
Can handle mask indices, coordinate matrices, or pass through to coordinate-based indexing.
Extracts a single volume from a LatentNeuroVec
as a SparseNeuroVol
.
Usage
# S4 method for class 'H5ParcellatedScan,ANY,missing,ANY'
x[i, j, ..., drop = TRUE]
# S4 method for class 'H5ParcellatedScanSummary,ANY,ANY,ANY'
x[i, j, k, l, ..., drop = TRUE]
# S4 method for class 'H5ParcellatedScanSummary,ANY,missing,ANY'
x[i, j, ..., drop = TRUE]
# S4 method for class 'H5NeuroVec,numeric,numeric,ANY'
x[i, j, k, l, ..., drop = TRUE]
# S4 method for class 'LabeledVolumeSet,numeric'
x[[i, j, ...]]
# S4 method for class 'LabeledVolumeSet,character'
x[[i, j, ...]]
# S4 method for class 'LatentNeuroVec,numeric'
x[[i, j, ...]]
# S4 method for class 'LatentNeuroVec,numeric,numeric,ANY'
x[i, j, k, l, ..., drop = TRUE]
# S4 method for class 'LatentNeuroVec,ANY,ANY,ANY'
x[i, j, k, l, ..., drop = TRUE]
# S4 method for class 'LatentNeuroVec,numeric'
x[[i, j, ...]]
Arguments
- x
A
LatentNeuroVec-class
object.- i
A numeric index specifying which volume to extract (must be a single value).
- j
Missing (not provided)
- ...
Additional arguments
- drop
Logical. If
TRUE
, the result is coerced to the lowest possible dimension- k
Slice index (z-coordinate) - optional, passed via ...
- l
Time index - optional, passed via ...
Value
An array or vector containing the subset of data
A SparseNeuroVol-class
containing:
The computed volume data
A new 3D
NeuroSpace
objectThe original spatial indices
Details
1. Validates index i
2. Computes the volume data with matrix operations
3. Adds the offset
4. Builds a new 3D NeuroSpace
5. Returns a SparseNeuroVol
See also
SparseNeuroVol-class
for the return type,
NeuroSpace-class
for spatial metadata.
Other H5Cluster:
H5ParcellatedMultiScan-class
,
[,H5ParcellatedScan,ANY,ANY,ANY-method
,
as.data.frame()
,
as.matrix()
,
dim()
,
linear_access-methods
,
make_run_full()
,
make_run_summary()
,
series()
,
show,H5ParcellatedScan-method
Other H5Cluster:
H5ParcellatedMultiScan-class
,
[,H5ParcellatedScan,ANY,ANY,ANY-method
,
as.data.frame()
,
as.matrix()
,
dim()
,
linear_access-methods
,
make_run_full()
,
make_run_summary()
,
series()
,
show,H5ParcellatedScan-method
Other H5Cluster:
H5ParcellatedMultiScan-class
,
[,H5ParcellatedScan,ANY,ANY,ANY-method
,
as.data.frame()
,
as.matrix()
,
dim()
,
linear_access-methods
,
make_run_full()
,
make_run_summary()
,
series()
,
show,H5ParcellatedScan-method