query_slice: Query for raw data.

View source: R/opentimsr.R

query_sliceR Documentation

Query for raw data.

Description

Get the raw data from Bruker's 'tdf_bin' format. Defaults to both raw data ('frame','scan','tof','intensity') and its tranformations into physical units ('mz','inv_ion_mobility','retention_time').

Usage

query_slice(opentims, from = NULL, to = NULL, by = 1, columns = all_columns)

Arguments

opentims

Instance of OpenTIMS.

from

First frame to extract.

to

Last frame to extract.

by

Every by-th frame gets extracted (starting from the first one).

columns

Vector of columns to extract. Defaults to all columns.

Details

We assume 'from' <= 'to'.

Value

data.frame with selected columns.

Examples

## Not run: 
D = OpenTIMS('path/to/your/folder.d')
print(query_slice(D, 10, 200, 4)) # extract every fourth frame between 10 and 200. 
print(query_slice(D, 10, 200, 4, columns=c('scan','intensity')) # only 'scan' and 'intensity'

## End(Not run)

opentimsr documentation built on March 30, 2022, 1:06 a.m.