Description Usage Arguments Details Value Author(s) See Also Examples
Queue pre-processing steps on an imaging dataset and apply them, possibly writing out the processed data to a file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## S4 method for signature 'MSImagingExperiment'
process(object, ..., delay = FALSE,
outpath = NULL, imzML = FALSE)
## S4 method for signature 'SparseImagingExperiment'
process(object, fun, ...,
kind = c("pixel", "feature", "global"),
moreargs = NULL,
prefun, preargs,
postfun, postargs,
plotfun,
label = "",
delay = FALSE,
plot = FALSE,
par = NULL,
outpath = NULL,
BPPARAM = getCardinalBPPARAM())
|
object |
An imaging dataset. |
fun |
A function to apply to each feature-vector or image-vector. |
... |
Additional arguments to |
delay |
Should the function |
outpath |
The path to a file where the results will be written by |
imzML |
Should the output file be an imzML file? Note: some processing methods are not be supported with this option. |
kind |
What kind of processing to perform? Over pixels, over features, or global processing of the dataset as a single unit. |
moreargs |
Additional arguments to be passed to |
prefun |
A pre-processing function to be applied to the entire dataset, taking the dataset as its first argument. This should return another object of the same class. |
preargs |
Additional arguments to |
postfun |
A post-processing function to be applied to the output, taking the result as its first argument, and the original dataset as its second argument. This should return another object of the same class as the original dataset. |
postargs |
Additional arguments to |
plotfun |
A function to be used to plot the output of |
label |
The label of the processing step. This is used to identify it in the queue, and is printed as it is being processed. |
plot |
Plot the function for each pixel or feature while it is being processed? Only possible if |
par |
Plotting parameters to be passed to |
BPPARAM |
An optional instance of |
This method allows queueing of delayed processing to an imaging dataset. All of the registered processing steps will be applied in sequence whenever process()
is called next with delay=FALSE
. The processing can be over feature-vectors (e.g., mass spectra), over image-vectors, or over the entire dataset as a unit. The processing is performed in parallel using the current registered parallel backend.
The method for MSIMagingExperiment
allows writing the output directly to an imzML file, with certain restrictions. Some pre-processing methods are not supported with this option, and the experiment must not contain multiple runs.
An object of the same class (or subclass) as the original imaging dataset, with the data processing queued or applied.
Kylie A. Bemis
SparseImagingExperiment
,
MSImagingExperiment
,
pixelApply
,
featureApply
,
normalize
,
smoothSignal
,
reduceBaseline
,
peakPick
,
peakAlign
,
peakFilter
,
peakBin
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.