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

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

[复制链接]
发表于 2012-2-26 07:31:51 | 显示全部楼层 |阅读模式
readMgfData(MSnbase)
readMgfData()所属R语言包:MSnbase

                                         Import mgf files as 'MSnExp' instances.
                                         作为MSnExp“实例导入MGF文件。

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

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

Reads an mgf file and generates an "MSnExp" object.
读取一个的MGF文件和产生"MSnExp"对象。


用法----------Usage----------


readMgfData(file, pdata = NULL, centroided = TRUE, smoothed = FALSE,
verbose = TRUE, cache = 1)



参数----------Arguments----------

参数:file
character vector with file name to be read.  
要读取的文件名字符与向量。


参数:pdata
an object of class "NAnnotatedDataFrame".  
对象类"NAnnotatedDataFrame"。


参数:smoothed
Logical indicating whether spectra already smoothed or not. Default is 'FALSE'. Used to initialise "MSnProcess" object in processingData slot.  
Logical指示是否谱已经平滑与否。默认为“假”。用于初始化"MSnProcess"processingData插槽的对象“。


参数:centroided
Logical indicating whether spectra are centroided or not. Default is 'TRUE'. Used to initialise "MSnProcess" object in processingData slot.  
Logical指示是否谱centroided的或没有。默认是“TRUE”。用于初始化"MSnProcess"processingData插槽的对象“。


参数:cache
Numeric indicating caching level. Default is 1. Under development.  
数字显示缓存级别。默认为1。正在开发中。


参数:verbose
verbosity flag.   
冗长的标志。


Details

详情----------Details----------

Note that when reading an mgf file, the original order of the spectra is lost. Thus, if the data was originally written to mgf from an MSnExp object using writeMgfData, although the feature names will be identical, the spectra are not as a result of the reordering. See example below.
请注意,阅读MGF文件时,光谱的原始订单丢失。因此,如果数据最初被写了MGF从MSnExp使用writeMgfData对象,虽然功能名称将是相同的,谱是不是作为一个重新排序的结果。见下面的例子。


值----------Value----------

An instance of
一个实例


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



Guangchuang Yu <guangchuangyu@gmail.com> and Laurent Gatto <lg390@cam.ac.uk>




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

writeMgfData method to write the content of "Spectrum" or "MSnExp" objects to mgf files. Raw data files can also be read with the readMSData function.
writeMgfData方法写"Spectrum"或"MSnExp"对象MGF文件的内容,。原始数据文件,也可以读readMSData功能。


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


  ## Not run: [#无法运行:]
    data(itraqdata)
    writeMgfData(itraqdata,file="itraqdata.mgf",COM="MSnbase itraqdata")
    itraqdata2 <- readMgfData("itraqdata.mgf")
    ## note that the order of the spectra is altered[#注意,光谱顺序改变]
    ## and precision of some values (precursorMz for instance)[#和精度的一些值(例如precursorMz)]
    match(signif(precursorMz(itraqdata2),4),signif(precursorMz(itraqdata),4))
    ## [1]  1 10 11 12 13 14 15 16 17 18 ...[[1] 1 10 11 12 13 14 15 16 17 18 ...]
    ## ... but all the precursors are there[#...但所有的前体有]
    all.equal(sort(precursorMz(itraqdata2)),sort(precursorMz(itraqdata)),
              check.attributes=FALSE,
              tolerance=10e-5)
    ## is TRUE[#是属实]
    all.equal(as.data.frame(itraqdata2[[1]]),as.data.frame(itraqdata[[1]]))
    ## is TRUE[#是属实]
    all.equal(as.data.frame(itraqdata2[[3]]),as.data.frame(itraqdata[[11]]))
    ## is TRUE[#是属实]
  
## End(Not run)[#结束(不运行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-3 04:06 , Processed in 0.031814 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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