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

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

[复制链接]
发表于 2012-2-25 13:17:26 | 显示全部楼层 |阅读模式
AnnotatedDataFrame(Biobase)
AnnotatedDataFrame()所属R语言包:Biobase

                                         Class Containing Measured Variables and Their Meta-Data Description.
                                         类包含测量变量及其元数据的描述。

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

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

An AnnotatedDataFrame consists of two parts. There is a collection of samples and the values of variables measured on those samples. There is also a description of each variable measured. The components of an AnnotatedDataFrame can be accessed with pData and varMetadata.
AnnotatedDataFrame由两部分组成。有一个样品,这些样品的测量变量的值的集合。也有每个测量变量的描述。可以访问AnnotatedDataFrame和pDatavarMetadata组件。


延伸----------Extends----------

Versioned
版本


创建对象----------Creating Objects----------

AnnotatedDataFrame(data, varMetadata, dimLabels=c("rowNames", "columnNames"), ...)
AnnotatedDataFrame(data, varMetadata, dimLabels=c("rowNames", "columnNames"), ...)

AnnotatedDataFrame instances are created using AnnotatedDataFrame. The function can take three arguments, data is a data.frame of the samples (rows) and measured variables (columns).  varMetadata is a data.frame with the number of rows equal to the number of columns of the data argument. varMetadata describes aspects of each measured variable. dimLabels provides aesthetic control for labeling rows and columns in the show method. varMetadata and dimLabels can be missing.
AnnotatedDataFrame实例创建使用AnnotatedDataFrame。该功能可以采取三个参数,data是data.frame的样品(行)和测量变量(列)。 varMetadata是data.frame与data参数列数等于行数。 varMetadata介绍每个测量变量的各个方面。 dimLabels提供审美控制标签的行和列show方法。 varMetadata和dimLabels可缺少的。

as(data.frame, "AnnotatedDataFrame") coerces a data.frame to an AnnotatedDataFrame.
as(data.frame, "AnnotatedDataFrame")胁迫,以一个data.frame的AnnotatedDataFrame。

annotatedDataFrameFrom may be a convenient way to create an AnnotatedDataFrame from AssayData-class.
annotatedDataFrameFrom可能是一个便捷的方式,以创建一个AnnotatedDataFrame从AssayData-class。


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

Class-specific slots:
类特定的插槽:




data: A data.frame containing samples (rows)
data:data.frame包含样本(行)




dimLabels: A character vector of length 2 that
dimLabels:character长度为2的向量




varMetadata: A data.frame with number of rows equal number of columns in data, and at least one column, named labelDescription, containing a textual description
varMetadata:data.framedata,至少有一列名为labelDescription,包含文字描述的行数列数相等,




.__classVersion__: A Versions object describing the R and Biobase version numbers used to created the instance.
.__classVersion__:VersionsR和BIOBASE版本用来创建实例的描述对象。


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

Class-specific methods.
类的具体方法。




as(annotatedDataFrame, "data.frame") Coerce objects of
as(annotatedDataFrame, "data.frame")要挟对象

<AnnotatedDataFrame>:</dt> Bind data from one AnnotatedDataFrame to a second AnnotatedDataFrame, returning the result as an AnnotatedDataFrame. Row (sample) names in each argument must be unique. Variable names present in both arguments occupy a single column in the resulting AnnotatedDataFrame. Variable names unique to either argument create columns with values assigned for those samples where the variable is present. varMetadata in the returned
<AnnotatedDataFrame> </代码>:</ DT>从一个AnnotatedDataFrame绑定数据到第二个AnnotatedDataFrame,返回AnnotatedDataFrame结果。行(样品)每个参数的名称必须是唯一的。目前在这两个参数的变量名在生成的AnnotatedDataFrame占据单个列。独特的任一参数的变量名创建列,其中的变量是目前这些样本的分配值。 varMetadata返回

pData(<AnnotatedDataFrame>)<-<data.frame>:</dt> Set and retrieve the data (samples and variables) in the
pData(<AnnotatedDataFrame>)<-<data.frame>:</ DT>设置和检索数据(样本和变量)在

varMetadata(<AnnotatedDataFrame>)<-<data.frame>:</dt> Set and retrieve the meta-data (variables and their descriptions) in the
varMetadata(<AnnotatedDataFrame>)<-<data.frame>:</ DT>设置和检索元数据(变量和它们的描述)

featureNames(<AnnotatedDataFrame>)<-<ANY>:</dt> Set and retrieve the feature names in AnnotatedDataFrame; a
featureNames(<AnnotatedDataFrame>)<-<ANY>:</ DT>设置和检索AnnotatedDataFrame的功能名称;

sampleNames(<AnnotatedDataFrame>)<-<ANY>:</dt> Set and
sampleNames(<AnnotatedDataFrame>)<-<ANY>:</ DT>设置

varLabels(<AnnotatedDataFrame>)<-<data.frame>:</dt> Set and
varLabels(<AnnotatedDataFrame>)<-<data.frame>:</ DT>设置

dimLabels(<AnnotatedDataFrame>) <- <character></dt> Retrieve labels used for display of AnnotatedDataFrame, e.g.,
dimLabels(<AnnotatedDataFrame>) <- <character></ DT>找回AnnotatedDataFrame,如显示所使用的标签,

Standard generic methods:
标准的通用方法:




initialize(<AnnotatedDataFrame>): Object instantiation, used
initialize(<AnnotatedDataFrame>):对象实例,使用




as(<data.frame>, "AnnotatedDataFrame"): Convert a
as(<data.frame>, "AnnotatedDataFrame"):转换




as(<phenoData>,<AnnotatedDataFrame>): Convert old-style phenoData-class objects to
as(<phenoData>,<AnnotatedDataFrame>):转换旧式phenoData-class对象




validObject(<AnnotatedDataFrame>): Validity-checking method, ensuring coordination between data and
validObject(<AnnotatedDataFrame>):有效性检查方法,确保之间的协调data“




updateObject(object, ..., verbose=FALSE) Update instance to current version, if necessary. See updateObject
updateObject(object, ..., verbose=FALSE)实例更新到当前版本,如果有必要的。看到updateObject




isCurrent(object) Determine whether version of object is current. See isCurrent
isCurrent(object)确定对象是否是最新的版本。看到isCurrent




isVersioned(object) Determine whether object contains a 'version' string describing its structure . See isVersioned
isVersioned(object)确定是否对象包含一个版本字符串,来描述它的结构。看到isVersioned




show(<AnnotatedDataFrame>) Abbreviated display of object
show(<AnnotatedDataFrame>)缩写显示对象




[<sample>,<variable>: Subset operation, taking two arguments and indexing the sample and variable. Returns an AnnotatedDataFrame, i.e., including relevant metadata. Unlike a data.frame, setting drop=TRUE
[<sample>,<variable>:子集操作,采取两个参数和索引的样本和变量。返回AnnotatedDataFrame,即包括相关的元数据,。不像data.frame,设置drop=TRUE




[[<variable>, $<variable>: Selector returning a
[[<variable>,$<variable>:选择返回

$<variable> <- <new_value>:</dt> Replace or add a variable to pData. ... can include named arguments (especially
$<variable> <- <new_value>:</ DT>更换或添加一个变量pData的。 ...可以包括命名参数(尤其是

ncol(<AnnotatedDataFrame>):</dt> Number of samples and variables (dim) and variables (ncol) in the
ncol(<AnnotatedDataFrame>):</ DT>样品和变量(dim)和变量(ncol)


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


V.J. Carey, after initial design by R. Gentleman



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

eSet, ExpressionSet, read.AnnotatedDataFrame
eSet,ExpressionSet,read.AnnotatedDataFrame


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


df <- data.frame(x=1:6,
                 y=rep(c("Low", "High"),3),
                 z=I(LETTERS[1:6]),
                 row.names=paste("Sample", 1:6, sep="_"))
metaData <-
  data.frame(labelDescription=c(
               "Numbers",
               "Factor levels",
               "Characters"))

AnnotatedDataFrame()
AnnotatedDataFrame(data=df)
AnnotatedDataFrame(data=df, varMetaData=metaData)
as(df, "AnnotatedDataFrame")

obj <- AnnotatedDataFrame()
pData(obj) <- df
varMetadata(obj) <- metaData
validObject(obj)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 15:26 , Processed in 0.024964 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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