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

Arguments

x

A GCIMSSample object

i

index for drift time to subset

j

index for retention time to subset

...

ignored

dt_idx

A numeric vector with the drift time indices to extract (or a logical vector of the length of drift time)

rt_idx

A numeric vector with the retention time indices to extract (or a logical vector of the length of retention time)

dt_range

The minimum and maximum drift times to extract (length 2 vector)

rt_range

The minimum and maximum retention times to extract (length 2 vector)

object

A GCIMSSample object

value

A data frame with the peak list

Value

[: 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

Functions

  • [: 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

See also

Examples

# `[' examples

obj <- GCIMSSample(drift_time=1:2, retention_time=1:3, data = matrix(1:6, nrow=2, ncol=3))
dim(obj)
#> [1] 2 3