keyword-methods(flowCore)
keyword-methods()所属R语言包:flowCore
Methods to retrieve keywords of a flowFrame
方法一个flowFrame检索的关键字
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Accessor and replacement methods for items in the description slot (usually read in from a FCS file header). It lists the keywords and its values for a flowFrame specified by a character vector. Additional methods for function and lists exists for more programmatic access to the keywords.
项目在描述插槽存取和更换方法(通常是在从FCS文件头读)。它列出了指定的字符向量flowFramekeywords和其价值。额外的方法function和lists存在更编程访问的关键字。
用法----------Usage----------
keyword(object, keyword)
参数----------Arguments----------
参数:object
Object of class flowFrame.
对象类flowFrame。
参数:keyword
Character vector or list of potential keywords or function. If missing all keywords are returned.
特征向量或潜在的关键字或功能列表。所有关键字,如果缺少返回。
Details
详情----------Details----------
The keyword methods allow access to the keywords stored in the FCS files, either for a flowFrame or for a list of frames in a flowSet. The most simple use case is to provide a character vector or a list of character strings of keyword names. A more sophisticated version is to provide a function which has to take one mandatory argument, the value of this is the flowFrame. This can be used to query arbitrary information from the flowFrames description slot or even the raw data. The function has to return a single character string. The list methods allow to combine functional and direct keyword access. The replacement method takes a named character vector or a named list as input. R's usual recycling rules apply when replacing keywords for a whole flowSet
keyword方法允许访问存储在FCS文件的关键字,无论是flowFrame或flowSet的帧列表。最简单的使用情况是提供一个字符向量或关键字名称的字符串列表。一个更复杂的版本是提供一个函数,它有一个强制参数,该值是flowFrame。这可以用来查询任意信息flowFramesdescription插槽,甚至原始数据。该函数返回一个字符串。 list方法可以结合功能和直接关键字访问。更换方法需要一个命名的特征向量作为输入的命名名单。 R的通常的回收规则适用时更换整个flowSet关键字
方法----------Methods----------
object = "flowFrame", keyword = "character" Return values for all keywords from the description slot in object
对象=的“flowFrame”关键字=“字符”中的所有关键字返回值从description object插槽
object = "flowFrame", keyword = "function" Apply the function in keyword on the flowFrame object. The function needs to be able to cope with a single argument and it needs to return a single character string. A typical use case is for instance to paste together values from several different keywords or to compute some statistic on the flowFrame and
对象=的“flowFrame”关键字“功能”适用于上keywordflowFrame object功能。该功能需要能够应付一个参数,它需要返回一个字符串。一个典型的使用情况,例如贴在一起从几个不同的关键字的值来计算一些统计上的flowFrame“
object = "flowFrame", keyword = "list" Combine characters and
对象=的“flowFrame”关键字=“名单”合并字符和
object = "flowFrame", keyword = "missing" This is essentially an alias for description and returns all keyword-value
对象=的“flowFrame”关键字=“失踪”,这实质上是description的别名,并返回所有关键字值
object = "flowSet", keyword = "list" This is a wrapper around fsApply(object, keyword, keyword) which essentially
对象=“flowSet的”关键字=“名单”,这是一个包装围绕fsApply(object, keyword, keyword)这基本上
object = "flowSet", keyword = "ANY" This first coerces the keyword (mostly a character vector) to a list and then calls the next applicable method.
对象=“flowSet的”关键字=“ANY”,这首胁迫keyword(主要是特征向量)到一个列表中,然后调用未来适用法。
作者(S)----------Author(s)----------
N LeMeur,F Hahne,B Ellis
参见----------See Also----------
description
description
举例----------Examples----------
samp <- read.FCS(system.file("extdata","0877408774.B08", package="flowCore"))
keyword(samp)
keyword(samp, "FCSversion")
keyword(samp, function(x,...) paste(keyword(x, "SAMPLE ID"), keyword(x,
"GUID"), sep="_"))
keyword(samp) <- list(foo="bar")
data(GvHD)
keyword(GvHD, list("GUID", cellnumber=function(x) nrow(x)))
keyword(GvHD) <- list(sample=sampleNames(GvHD))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|