Nothing
getPeaks<-function(bseoffM, peakinfofile, SoN = 2,
span = 81, sm.span=11,zerothrsh=2,area.w=0.003,
ratio=.2) {
mzs <- as.numeric(rownames(bseoffM))
n <- dim(bseoffM)[2]
Spec <- colnames(bseoffM)
cnts <- rep(0, n)
for (j in 1:n) {
bseoff <- cbind(mzs,bseoffM[,j])
pks <- isPeak(bseoff,SoN=SoN,span=span,
sm.span=sm.span, zerothrsh=zerothrsh,
area.w=area.w, ratio=ratio)
cnts[j] <- sum(pks$peak)
is.peak <- pks$peak
if (j >1) {
Peak. <- c(Peak.,cumsum(is.peak[is.peak]))
Intensity <- c(Intensity,pks$smooth[is.peak])
Substance.Mass <- c(Substance.Mass,
pks$mz[is.peak])
} else {
Peak. <- cumsum(is.peak[is.peak])
Intensity <- pks$smooth[is.peak]
Substance.Mass <- pks$mz[is.peak]
}
}
Spectrum.Tag <- rep(Spec, cnts)
Spectrum. <- rep(1:n, cnts)
write.table(data.frame(Spectrum.Tag,Spectrum., Peak.,
Intensity, Substance.Mass), file=peakinfofile,
sep=",", row.names=F)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.