isPeak(PROcess)
isPeak()所属R语言包:PROcess
Locate Peaks in a Spectrum
在频谱中找到峰
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find local maxima of a spectrum.
查找本地频谱的最大值。
用法----------Usage----------
isPeak(f,SoN = 2,span = 81,sm.span=11,plot=FALSE,add = FALSE,
参数----------Arguments----------
参数:f
a matrix of two columns representing a spectrum, with the first column the m/z value and second the intensity
矩阵的第一列的两列代表一个频谱,m / z值和第二强度
参数:SoN
signal to noise ratio criterion for peak detection
峰值检测信号信噪比准则
参数:span
parameter for estimating local variance before peak detection; default is 81 points, that is, 40 points to the left and right of a point of which the variance is being estimated.
局部方差估计峰值检测前,默认是81分,也就是40点的左边和右边的点估计方差参数。
参数:sm.span
parameter for smoothing the spectrum before peak detection; default is 11 points, that is, 5 points to the left and right of a point being smoothed
平滑频谱峰值检测前,默认的参数是11分,也就是5分左,右一个点被平滑
参数:plot
logical, plot the smoothed spectrum and peaks?
逻辑,图的平滑频谱和峰?
参数:add
add to the existing raw and baseline-substracted plot?
添加到现有的原材料和基线加减图?
参数:zerothrsh
ignore peaks whose intensity values are below zerothrsh.
忽略其强度值低于zerothrsh的峰。
参数:area.w
the neighbourhood of a peak m/z, mz*(1-area.w, 1+area.w). </table>
一峰的m / z,MZ *(1-area.w,件1 + area.w)附近。 </ TABLE>
参数:ratio
if area/max(area) > ratio, the peak is retained.
如果面积/最大(区)的比例,高峰将被保留。
参数:...
further arguments that get passed on to plot.
获得通过的plot进一步的论据。
Details
详情----------Details----------
A spectrum is smoothed first using the nearest "span" neighbours. A larger span "sm.span" is needed to estimate the local variation so that it is not overestimated due to the peaks nearby. Then potential peaks are identified using Ripley's "peaks" function with "span" points.
频谱平滑首先使用最近的“跨度”邻居。一个更大跨度的sm.span“需要估计当地的变化,所以它不是高估,由于附近的山峰。然后使用Ripley的“峰”功能与“跨”点确定潜在峰。
Peaks that satify the conditions that the (smoothed) signal to noise ratio is greater than "SoN" and that the smoothed signal is greater than 1.64 * mad(sm) are returned.
峰,satify(平滑)信噪比大于儿子,是平滑的信号大于1.64 *狂(SM)返回的条件。
值----------Value----------
A data frame with five components, "peak","smooth","mz" and "sigmas", each of length the number of rows in "f". "peak" is logical indicating whethere there is a peak or not (Y/N), "smooth" the smooth of the spectrum, "mz" the same as "f[,1]", "sigmas" the estimates of local variation and "area" the area associated with each peak after the first pass.
数据框中有五个组成部分,“峰值”,“顺利”,“MZ”和“sigmas,每个长度的行F。 “峰值”是逻辑说明whethere有一个高峰或(Y / N),“平稳”的频谱平滑,MZ一样F [1],sigmas估计当地的变化和“区域”每个高峰期后的第一道关口的区域。
作者(S)----------Author(s)----------
Xiaochun Li
举例----------Examples----------
example(bslnoff)
pkobj <- isPeak(bseoff,span=81,sm.span=11,plot=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|