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

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

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

                                        Class for representing a reference library
                                         类为代表的参考库

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

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

This is a class representation of a reference library.       
这是一个参考图书馆类表示。


类的对象----------Objects from the Class----------

Objects can be created by the function ImportLibrary.
对象可以创建功能ImportLibrary。


插槽----------Slots----------




Name: "character", the metabolite or analyte names.
Name:"character",代谢物或分析物的名称。




RI: "numeric", the expected retention time indices (RI) of the metabolites/analytes.
RI:"numeric",预期停留时间指数(RI)的代谢物/分析物。




medRI: "numeric", the median RI calculated from the samples.
medRI:"numeric",计算RI样本中位数。




RIdev: "matrix", the RI deviation windows, k = 1,2,3. A three column matrix
RIdev:"matrix",国际扶轮偏差窗口,K = 1,2,3。一个三列的矩阵




selMass: "list", every component is a numeric vector containing the selective masses.
selMass:"list",每一个组件是一个数值向量含有选择性群众的。




topMass: "list", every component is a numeric vector containing the top masses.
topMass:"list",每一个组件是一个数值向量含有顶端群众的。




quantMass: "numeric", the mass used for quantification.
quantMass:"numeric",量化的质量。




libData: "data.frame", additional library information.
libData:"data.frame",额外的库信息。




spectra: "list", the metabolite spectra. Each component is a two column matrix: m/z and intensity.
spectra:"list",代谢物谱。每个组件是一个两列矩阵的m / z和强度。


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




[ signature(x = "tsLib"): Selects a subset of metabolites from the library.
[signature(x = "tsLib"):选择从库中代谢产物的一个子集。




$name signature(x = "tsLib"): Access column name of libData slot.
$namesignature(x = "tsLib"):访问列namelibData插槽。




libId signature(obj = "tsLib"): Returns a vector of indices.
libIdsignature(obj = "tsLib"):返回一个矢量指数。




length signature(x = "tsLib"): returns the length of the library. i.e., number of metabolites.
length的signature(x = "tsLib"):返回库的长度。即代谢产物。




libData signature(obj = "tsLib"): gets/sets the libData slot.
libDatasignature(obj = "tsLib"):获取/设置libData插槽。




libName signature(obj = "tsLib"): gets the Name slot.
libNamesignature(obj = "tsLib"):得到Name槽。




libRI signature(obj = "tsLib"): gets the RI slot.  
libRIsignature(obj = "tsLib"):得到RI槽。




medRI signature(obj = "tsLib"): gets the medRI slot.  
medRIsignature(obj = "tsLib"):得到medRI槽。




refLib signature(obj = "tsLib"): Low level method to create a matrix representation of the library.
refLibsignature(obj = "tsLib"):低层次的方法来创建一个图书馆的矩阵表示。




RIdev signature(obj = "tsLib"): gets the RI deviations.
RIdev的signature(obj = "tsLib"):获得国际扶轮的偏差。




RIdev<- signature(obj = "tsLib"): sets the RI deviations.
RIdev<-signature(obj = "tsLib"):设置RI偏差。




quantMass signature(obj = "tsLib"): gets the quantification mass.
quantMass的signature(obj = "tsLib"):得到量化的质量。




quantMass<- signature(obj = "tsLib"): sets the quantification mass.
quantMass<-signature(obj = "tsLib"):设置量化的质量。




selMass signature(obj = "tsLib"): gets the selective masses.
selMasssignature(obj = "tsLib"):获得选择性的群众。




show signature(object = "tsLib"): show method.
showsignature(object = "tsLib")的show方法。




spectra signature(obj = "tsLib"): gets the spectra.
spectra的signature(obj = "tsLib"):得到的光谱。




topMass signature(obj = "tsLib"): gets the top masses.
topMasssignature(obj = "tsLib"):获得顶级的群众。


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


Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig



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

ImportLibrary
ImportLibrary


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


showClass("tsLib")

# define some metabolite names[定义一些代谢物的名称]
libNames   <- c("Metab1", "Metab2", "Metab3")
# the expected retention index[预计保留指数]
RI         <- c(100,200,300)
# selective masses to search for. A list of vectors.[选择性群众寻找。向量列表。]
selMasses  <- list(c(95,204,361), c(87,116,190), c(158,201,219))
# define the retention time windows to look for the given selective masses.[定义保留时间窗口,寻找选择性群众。]
RIdev      <- matrix(rep(c(10,5,2), length(libNames)), ncol = 3, byrow = TRUE)
# Set the mass spectra. A list object of two-column matrices, or set to [设置质谱。一个两列的矩阵列表中的对象,或设置为]
# an empty list if the spectra is not available[一个空列表,如果没有谱是]
spectra    <- list()
# some extra information about the library[一些额外的信息库]
libData    <- data.frame(Name = libNames, Lib_RI = RI)
# create a reference library object[创建一个引用库对象]
refLibrary <- new("tsLib", Name = libNames, RI = RI, medRI = RI, RIdev = RIdev,
                        selMass = selMasses, topMass = selMasses, spectra = spectra, libData = libData)

# get the metabolite names[获得的代谢物的名称]
libName(refLibrary)
# set new names[设置新的名字]
libName(refLibrary) <- c("Metab01", "Metab02", "Metab03")

# get the expected retention times[得到预期的保留时间]
libRI(refLibrary)
# set the retention time index for metabolite 3 to 310 seconds[设置的代谢产物3至310秒的停留时间指数]
libRI(refLibrary)[3] <- 310
# change the seleccion and top masses of metabolite 3[改变代谢产物3 seleccion和顶部群众的]
selMass(refLibrary)[[3]] <- c(158,201,219,220,323)
topMass(refLibrary)[[3]] <- c(158,201,219,220,323)
# change the retention time deviations[改变保留时间偏差]
RIdev(refLibrary)[3,] <- c(8,4,1)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 06:11 , Processed in 0.024496 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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