Learn R Programming

opentimsr (version 1.0.13)

query_slice: 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.

Value

data.frame with selected columns.

Details

We assume 'from' <= 'to'.

Examples

Run this code
# 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'
# }

Run the code above in your browser using DataLab