GCIMSSample-methods.Rd
Methods for the GCIMSSample class
# S3 method for class 'GCIMSSample'
x[i, j, ...]
# S3 method for class 'GCIMSSample'
dim(x)
# S3 method for class 'GCIMSSample'
subset(x, dt_idx = NULL, rt_idx = NULL, dt_range = NULL, rt_range = NULL, ...)
# S4 method for class 'GCIMSSample'
description(object)
# S4 method for class 'GCIMSSample,ANY'
description(object) <- value
# S4 method for class 'GCIMSSample'
peaks(object)
# S4 method for class 'GCIMSSample'
peaks(object) <- value
A GCIMSSample object
index for drift time to subset
index for retention time to subset
ignored
A numeric vector with the drift time indices to extract (or a logical vector of the length of drift time)
A numeric vector with the retention time indices to extract (or a logical vector of the length of retention time)
The minimum and maximum drift times to extract (length 2 vector)
The minimum and maximum retention times to extract (length 2 vector)
A GCIMSSample object
A data frame with the peak list
[
: object x
with features i
and cells j
An integer vector with the number of rows and columns of the matrix
subset
: A subsetted GCIMSSample
object
[
: Simple subsetter for GCIMSSample objects
dim(GCIMSSample)
: Dimension of the data matrix
subset(GCIMSSample)
: Subset a GCIMSSample object
description(GCIMSSample)
: Get the description
description(object = GCIMSSample) <- value
: Set the description
peaks(GCIMSSample)
: Get the peak list
peaks(GCIMSSample) <- value
: Set the peak list
# `[' examples
obj <- GCIMSSample(drift_time=1:2, retention_time=1:3, data = matrix(1:6, nrow=2, ncol=3))
dim(obj)
#> [1] 2 3