Description Usage Arguments Details Value Examples
binning
1 2 3 4 |
object |
object of class MassImage |
binningFactor |
numeric factor for binning (2, 4, etc) |
... |
additional args |
bining is used to reduce the resolution/size of MassImage objects.
Optionally mclapply
from the parallel package is used to speed up
processing time.
binned object of class MassImage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(BiocParallel)
testImage<-MassImage('dummy')
par(mfcol=c(1,2), oma=c(0,0,0,0), mar=c(0,0,0,0))
image(testImage)
## the following param will cause to run non parallel
register(SerialParam(), default=TRUE)
testImage <- binning(testImage,binningFactor = 4)
image(testImage)
## Not run:
library(tofsimsData)
data(tofsimsData)
par(mfcol=c(1,2), oma=c(0,0,0,0), mar=c(0,0,0,0))
image(testImage)
testImage <- binning(testImage,binningFactor = 4)
image(testImage)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.