Filter GCIMSDataset samples by retention time

# S4 method for class 'GCIMSDataset'
filterRt(object, rt_range)

Arguments

object

A GCIMSDataset object

rt_range

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

Value

The given object, with a delayed operation to filter retention times

Examples

base_dir <- system.file("extdata", "sample_formats", package = "GCIMS")
annot <- data.frame(SampleID = "Sample1", FileName = "small.mea.gz")
dataset <- GCIMSDataset$new(annot, base_dir)
filterRt(dataset, rt_range = c(5, 50))