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

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

[复制链接]
发表于 2012-2-26 15:22:32 | 显示全部楼层 |阅读模式
ImportLibrary(TargetSearch)
ImportLibrary()所属R语言包:TargetSearch

                                         Library import
                                         库导入

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

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

These functions import a metabolite library file that will be used to processed the GC-MS data. Two file formats are supported: a tab-delimited format and the more common NIST MSP format.
这些功能将用于处理GC-MS数据导入代谢产物库文件。支持两种文件格式:制表符分隔的格式和较常见的NIST的MSP格式。


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


ImportLibrary(libfile, type = "auto", ...)

ImportLibrary.tab(libfile, fields = NULL, RI_dev = c(2000,1000,200),
    SelMasses = 5, TopMasses = 15, ExcludeMasses = NULL, libdata)

ImportLibrary.msp(libfile, fields = NULL, RI_dev = c(2000,1000,200),
    SelMasses = 5, TopMasses = 15, ExcludeMasses = NULL)




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

参数:libfile
A character string naming a library file. See details.  
一个字符串,命名库文件。查看详情。


参数:type
The library file format. Posible options are "tab" for a tab-delimited file, "msp" for NIST MSP format, or "auto" for autodetection. Default to "auto".
库文件的格式。更多钞票的选项"tab"制表符分隔的文件,"msp"NIST的MSP格式,或"auto"自动检测的。默认"auto"。


参数:fields
A two component list. Each component contains a regular expression used to parse and extract the fields for retention index and selection masses. Only meaningful for MSP format.
两元件列表。每个组件包含一个正则表达式,用于解析和提取保留指数和选择群众领域。唯一有意义的MSP格式。


参数:RI_dev
A three component vector with RI windows.  
一个三分量矢量与RI窗口。


参数:SelMasses
The number of selective masses that will be used.  
将用于选择性群众。


参数:TopMasses
The number of most intensive masses that will be taken from the spectrum, if no TOP_MASSES is provided.
最密集的群众将要采取的频谱,如果没有TOP_MASSES提供的数量。


参数:ExcludeMasses
Optional. A vector containing a list of masses that will be excluded.
可选的。一个向量,包含将被排除在外的群众名单。


参数:libdata
Optional. A data frame with library data. The format is the same as the library file. It is equivalent to loading the library file first with read.delim and calling ImportLibrary.tab after.
可选的。与库中的数据的数据框。格式是相同的库文件。它相当于先加载的库文件与read.delim调用ImportLibrary.tab后。


参数:...
Further arguments passed to ImportLibrary.tab or ImportLibrary.msp
进一步的参数传递ImportLibrary.tab或ImportLibrary.msp


Details

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

The tab-delimited format is a tab delimited text file with the following column names.
制表符分隔的格式是一个制表符分隔的文本文件与下面的列名。

Name - The metabolite name.
Name - 代谢物的名称。

RI - The expected RI.
RI - 预期的RI。

SEL_MASSES - A list of selective masses separated with semicolon.
SEL_MASSES - 一个用分号隔开的选择性群众的列表。

TOP_MASSES - A list of the most abundant masses to be searched, separated with semicolons.
TOP_MASSES - 最丰富群众的名单被搜查,用分号分隔。

Win_k - The RI windows, k = 1,2,3. Mass search is perfomed in three steps. A RI window required for each one of them.
Win_k -  RI窗口,K = 1,2,3。大规模搜索,俟三个步骤。他们每个人需要一个国际扶轮窗口。

SPECTRUM - The metabolite spectrum. m/z and intensity are separated by spaces and colons.
SPECTRUM - 代谢物谱。 m / z和强度的空格和冒号分隔。

QUANT_MASS - A list of masses that might be used for quantification. One value per metabolite and it must be one of the selective masses. (optional)
QUANT_MASS - 可能使用量化的群众名单。每代谢产物的一个值,它必须是的选择性群众之一。 (可选)

The columns Name and RI are mandatory. At least one of columns SEL_MASSES, TOP_MASSES and SPECTRUM must be given as well. By using the parameters SelMasses or TopMasses it is possible to set the selective masses or the top masses from the spectra. The parameter ExcludeMasses is used only when masses are obtained from the spectra. The parameter RI_dev can be used to set the RI windows. Note that in this case, all metabolites would have the same RI windows.
列Name和RI是强制性的。至少有一个列SEL_MASSES,TOP_MASSES和SPECTRUM必须给出。通过使用参数SelMasses或TopMasses它是可以设置的的选择性群众或从光谱群众。参数ExcludeMasses仅用于当群众从光谱获得。参数RI_dev可以用来设置RI窗口。请注意,在这种情况下,所有的代谢产物,将有相同的RI窗口。

The MSP format is a text file that can be imported/exported from NIST. A typical MSP file looks like this:
MSP格式是一个文本文件,可以导入/导出从NIST。一个典型的MSP文件看起来像这样:


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

A tsLib object.
一个tsLib对象。


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


Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig



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

ImportSamples, tsLib
ImportSamples,tsLib


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


# get the reference library file[参考库文件]
cdfpath <- file.path(.find.package("TargetSearchData"), "gc-ms-data")
lib.file  <- file.path(cdfpath, "library.txt")

# Import the reference library[导入参考图书馆]
refLibrary <- ImportLibrary(lib.file)

# set new names for the first 3 metabolites[设置为第3代谢产物的新名称]
libName(refLibrary)[1:3] <- c("Metab01", "Metab02", "Metab03")

# change the retention time deviations of Metabolite 3[改变的代谢物3的保留时间偏差]
RIdev(refLibrary)[3,] <- c(3000,1500,150)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-2 19:50 , Processed in 0.027612 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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