找回密码
 注册
查看: 630|回复: 0

R语言 MSnbase包 clean-methods()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 01:11:37 | 显示全部楼层 |阅读模式
clean-methods(MSnbase)
clean-methods()所属R语言包:MSnbase

                                         Cleans 'MSnExp' or 'Spectrum' instances
                                         清理“MSnExp或谱的实例

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This method cleans out individual spectra (Spectrum instances) or whole experiments (MSnExp instances) of 0-intensity peaks. Origninal 0-intensity values are retained only around peaks. If more than two 0's were separating two peaks, only the first and last ones, those directly adjacent to the peak ranges are kept. If two peaks are separated by only one 0-intensity value, it is retained. An illustrative example is shown below.
这种方法清除个别光谱(Spectrum实例)或整个实验0强度峰(MSnExp实例)。 origninal 0强度值只保留了周围的山峰。如果两个以上的分隔两个山峰,只有第一个和最后一个,直接相邻的峰值范围内保持。如果只有一个0强度值分隔两峰,它被保留下来。一个例子如下所示。


方法----------Methods----------

Cleans all spectra in MSnExp object. Displays a control bar if verbose set to TRUE (default). Returns a cleaned MSnExp instance.
清除所有在MSnExp对象的光谱。显示控制栏,如果详细的设置TRUE(默认)。返回清洁MSnExp实例。

Cleans the Spectrum object. Returns a cleaned Spectrum instance.
清除Spectrum对象。返回清洁Spectrum实例。


作者(S)----------Author(s)----------



Laurent Gatto <lg390@cam.ac.uk>




参见----------See Also----------

removePeaks and trimMz for other spectra processing methods.
removePeaks和trimMz其他谱加工方法。


举例----------Examples----------


int <- c(1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0)
sp1 <- new("Spectrum2",
           intensity=int,
           mz=1:length(int))
sp2 <- clean(sp1)
intensity(sp1)
intensity(sp2)

file <- dir(system.file(package="MSnbase",dir="extdata"),
            full.name=TRUE,pattern="mzXML$")
aa <- readMSData(file,verbose=FALSE)
bb <- clean(aa,verbose=FALSE)
sum(peaksCount(aa))
sum(peaksCount(bb))
processingData(bb)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 06:53 , Processed in 0.022862 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表