sub-TimsR-ANY-character-method: Get some frames of data.

Description Usage Arguments Value Examples

Description

Get some frames of data.

Usage

1
2
## S4 method for signature 'TimsR,ANY,character'
x[i, j]

Arguments

x

OpenTIMS data instance.

i

An array of nonzero frame numbers to extract.

j

A vector of strings with column names to extract.

Value

data.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
D = TimsR('path/to/your/folder.d')
all_cols = c('frame','scan','tof','intensity',
             'mz','inv_ion_mobility','retention_time')
print(D[c(1,20, 53), all_cols]
# extracted all columns

print(D[c(1,20, 53), c('scan','intensity')]
# only 'scan' and 'intensity'

## End(Not run)

timsr documentation built on May 12, 2021, 1:08 a.m.