View source: R/readjustWindow.R
readjustWindows | R Documentation |
Readjust windows so that boundaries in regions of few peaks.
readjustWindows(wind, ms1data, digits = 1, maxbin = 15, plot = FALSE)
wind |
a data frame with columns from and to |
ms1data |
masses |
digits |
mass accuracy |
maxbin |
maximum number of bins |
plot |
diagnostic plots (default FALSE) |
data.frame of same format as wind
but with improved start and end masses.
data(masses)
cdsw <- Cdsw(masses)
breaks <- cdsw$sampling_breaks(maxwindow=100,plot=TRUE)
table <- cdsw$asTable()
dim(table)
head(table)
tmp <- readjustWindows(table, masses,maxbin=10)
data.frame(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.