Description Usage Arguments Details Value Author(s) See Also Examples
Apply peak binning to a mass spectrometry imaging dataset.
1 2 3 4 5 6 7 |
object |
An imaging dataset. |
ref |
A reference to which the peaks are binned. |
type |
Should the summarized intensity of the peak by the maximum height of the peak or the area under the curve? |
tolerance |
The tolerance to be used when matching the m/z features in the dataset to the reference. If this is NA, then automatically guess a resolution from the data. |
units |
The units to use for the |
... |
Ignored. |
Peak binning is performed by first matching the m/z-values in the dataset to those in the reference, and then finding the boundaries of the peak by detecting the nearest local minima. Then either the maximum height or the area under the curve of the peak are returned.
Internally, pixelApply
is used to apply the binning. See its documentation page for more details.
An object of the same class with the binned peaks.
Kylie A. Bemis
MSImagingExperiment
,
peakPick
,
peakAlign
,
peakFilter
,
reduceDimension
,
pixelApply
,
process
1 2 3 4 5 6 7 8 9 10 11 12 | setCardinalBPPARAM(SerialParam())
set.seed(2)
data <- simulateImage(preset=1, npeaks=10, dim=c(3,3))
data <- data[,pData(data)$circle]
ref <- mz(metadata(data)$design$featureData)
# queue peak binning
data <- peakBin(data, ref=ref, type="height")
# apply peak binning
data_peaks <- process(data, plot=interactive())
|
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
Loading required package: BiocParallel
Loading required package: EBImage
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: ‘S4Vectors’
The following object is masked from ‘package:base’:
expand.grid
Loading required package: ProtGenerics
Attaching package: ‘ProtGenerics’
The following object is masked from ‘package:stats’:
smooth
Attaching package: ‘Cardinal’
The following object is masked from ‘package:stats’:
filter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.