| get_separate_frames | R Documentation |
Like query, but returns one data frame per frame instead of
one table with the peaks of all frames. Frames are decoded in parallel
(see opentims_set_threads). A frame requested more than once
is returned once.
get_separate_frames(opentims, frames, columns = all_columns)
opentims |
Instance of OpenTIMS. |
frames |
Vector of frame numbers to extract. |
columns |
Vector of columns to extract. Defaults to all columns. |
A named list of data.frames, one per distinct frame, in order of
first request and named by frame number. Each data.frame has the requested
columns, with one row per peak, as returned by query.
path.d = system.file("extdata", "test.d", package = "opentimsr")
setup_opensource()
D = OpenTIMS(path.d)
frames = get_separate_frames(D, c(1, 2))
names(frames)
head(frames[["2"]])
get_separate_frames(D, 1, columns=c('scan','intensity')) # only 'scan' and 'intensity'
CloseTIMS(D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.