applyControlGates(plateCore)
applyControlGates()所属R语言包:plateCore
Apply control gates to a flowPlate
应用控制大门到flowPlate
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Once setControlGates has been used to create gates for a flowPlate object, gates are applied to test samples using applyControlGates. The applyControlGates function is separated from setControlGates since gates may need be changed outside of setControlGates.
一旦setControlGates已被用于盖茨创建为flowPlate对象,门都适用于测试样品使用applyControlGates。 applyControlGates功能是从setControlGates分开,因为门可能需要改变外setControlGates。
用法----------Usage----------
applyControlGates(data, gateType="Negative.Control", ...)
参数----------Arguments----------
参数:data
A flowPlate dataset.
一个flowPlate集。
参数:gateType
The type of gate to be applied to the flowPlate. Currently only "Negative.Control" gates are supported.
门式应用的flowPlate。目前只有“Negative.Control”盖茨支持。
参数:...
optional arguments
可选参数
值----------Value----------
Returns a flowPlate where the wellAnnotation now contains additional columns corresponding to total number of events in a well (Total.Count), the percentage of cells above background (Percent.Positive), and the number of positive cells (Positive.Count).
返回一个flowPlate现在wellAnnotation包含额外列相应总数(Total.Count)在一个良好的事件,在上述背景下的单元百分比(Percent.Positive),阳性单元数(Positive.计数)。
作者(S)----------Author(s)----------
Errol Strain
参见----------See Also----------
See Also setControlGates
另见setControlGates
举例----------Examples----------
library(plateCore)
data(plateCore)
## Get the lymphocytes[#获取淋巴单元]
rectGate <- rectangleGate("FSC-H"=c(300,700),"SSC-H"=c(50,400))
pbmcPlate <- Subset(pbmcPlate, rectGate)
# Create a flowPlate from the sample data in plateCore[从在plateCore的样本数据,创建1 flowPlate]
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")
# Create a set of negative control gates and then apply them[创建了一套负控制闸门,然后将它们应用]
fp <- setControlGates(fp,gateType="Negative.Control")
fp <- applyControlGates(fp,gateType="Negative.Control")
# Percent Positive and Counts columns are now in the wellAnnotation[现在在wellAnnotation%的正和计数列]
head(wellAnnotation(fp))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|