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

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

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

                                        Subset a flowFrame or a flowSet
                                         一个子集flowFrame或1 flowSet

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

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

An equivalent of a subset function for flowFrame or a flowSet object. Alternatively, the regular subsetting operators can be used for most of the topics documented here.
相当于subsetflowFrameflowSet对象的功能。另外,正规子集营办商可用于记录在这里的主题。


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


Subset(x, subset, ...)



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

参数:x
The flow object, frame or set, to subset.
流对象,框架集,子集。


参数:subset
A filter object or, in the case of flowSet subsetting, a named list of filters.
过滤器对象,或在flowSet子集,命名的过滤器列表。


参数:...
Like the original subset function, you can also select columns.
原subset功能一样,你也可以选择列。


Details

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

The Subset method is the recommended method for obtaining a flowFrame that only contains events consistent with a particular filter. It is functionally equivalent to frame[as(filter(frame,subset),"logical"),] when used in the flowFrame context. Used in the flowSet context, it is equivalent to using fsApply to apply the filtering operation to each flowFrame.
Subset方法是获得flowFrame只包含与特定的过滤器一致的事件,推荐的方法。这是功能frame[as(filter(frame,subset),"logical"),]相当于flowFrame上下文中使用时。 flowSet上下文中使用,它是相当于使用fsApply申请每个flowFrame过滤操作。

Additionally, using Subset on a flowSet can also take a named list as the subset. In this case, the names of the list object should correspond to the sampleNames of the flowSet, allowing a different filter to be applied to each frame. If not all of the names are used or excess names are present, a warning will be generated but the valid filters will be applied for the rare instances where this is the intended operation. Note that a filter operation will generate a list of filterResult objects that can be used directly with Subset in this manner.
此外,使用SubsetflowSet也可以采取一个名为list作为一个子集。在这种情况下,列表中的对象的名称相对应的sampleNames的flowSet,允许不同的过滤器被应用到每一帧。如果不是所有的名称都使用或多余的名称存在,将会产生警告,但有效的过滤器将应用于为罕见的情况下,这是预期的操作。请注意,filter操作会产生一个filterResult,可用于直接用Subset这种方式的对象名单。


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

Depending on the original context, either a flowFrame or a flowSet.
根据原来的背景下,无论是flowFrame或flowSet。


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


B. Ellis



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

split, subset
split,subset


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



sample <- read.flowSet(path=system.file("extdata", package="flowCore"),
pattern="0877408774")
result <- filter(sample, rectangleGate("FSC-H"=c(-Inf, 1024)))
result
Subset(sample,result)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-8 23:38 , Processed in 0.026364 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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