toggleProbes(AnnotationDbi)
toggleProbes()所属R语言包:AnnotationDbi
Methods for getting/setting the filters on a Bimap object
获取/设置一个bimap对象的过滤器的方法。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These methods are part of the Bimap interface (see ?Bimap for a quick overview of the Bimap objects and their interface).
这些方法的bimap的接口的一部分(见?Bimap一个bimap的对象和它们的接口的简要概述)。
Some of these methods are for getting or setting the filtering status on a Bimap object so that the mapping object can toggle between displaying all probes, only single probes (the defualt) or only multiply matching probes.
这些方法有些是为获取或设置一个bimap对象的过滤状态,因此,可以切换显示所有探针,单探针(defualt)或只乘匹配探针之间的映射对象。
Other methods are for viewing or setting the filter threshold value on a InpAnnDbBimap object.
其他方法是查看或设置上InpAnnDbBimap对象的过滤器的阈值。
用法----------Usage----------
## Making a Bimap object that does not prefilter to remove probes that
## match multiple genes:
toggleProbes(x, value)
hasMultiProbes(x) ##T/F test for exposure of single probes
hasSingleProbes(x) ##T/F test for exposure of mulitply matched probes
## Looking at the SQL filter values for a Bimap
getBimapFilters(x)
## Setting the filter on an InpAnnDbBimap object
setInpBimapFilter(x,value)
参数----------Arguments----------
参数:x
A Bimap object.
一个bimap对象。
参数:value
A character vector containing the new value that the Bimap should use as the filter. Or the value to toggle a probe mapping to: "all", "single", or "multiple".
包含的新的价值,应该使用过滤器,bimap的一个特征向量。或切换探针映射值:“所有”,“单”,或“多”。
Details
详情----------Details----------
toggleProbes(x) is a methods for creating Bimaps that have an alternate filter for which probes get exposed based upon whether these probes map to multiple genes or not.
toggleProbes(x)是创建有一个备用过滤器为探针得到暴露后,这些探针是否映射到多个基因或不Bimaps方法。
hasMultiProbes(x) and hasSingleProbes(x) are provided to give a quick test about whether or not such probes are exposed in a given mapping.
hasMultiProbes(x)和hasSingleProbes(x)提供给有关与否,这种探针暴露在一个给定的映射的快速测试。
getBimapFilters(x) will list all the SQL filters applied to a Bimap object.
getBimapFilters(x)将列出所有的SQL过滤器应用到一个bimap对象。
setInpBimapFilters(x) will allow you to pass a value as a character string which will be used as a filter. In order to be useful with the InpAnnDbBimap objects provided in the inparanoid packages, this value needs to be a to digit number written as a percentage. So for example "80 is owing to the nature of the inparanoid data set.
setInpBimapFilters(x)将允许你传递一个字符串的值,这将作为一个过滤器使用。为了是提供在INPARANOID包InpAnnDbBimap对象有用,这个值必须是一个位数百分比的书面。因此,例如“80集INPARANOID数据的性质是由于。
值----------Value----------
A Bimap object of the same subtype as x for exposeAllProbes(x), maskMultiProbes(x) and maskSingleProbes(x).
bimap的对象的同一亚型xexposeAllProbes(x),maskMultiProbes(x)和maskSingleProbes(x)。
A TRUE or FALSE value in the case of hasMultiProbes(x) and hasSingleProbes(x).
一个TRUE或FALSE值在hasMultiProbes(x)和hasSingleProbes(x)的情况下。
作者(S)----------Author(s)----------
M. Carlson
参见----------See Also----------
Bimap, Bimap-keys, Bimap-direction, BimapFormatting, AnnDbBimap-envirAPI, nhit
bimap的,bimap的键,bimap的方向,BimapFormatting,AnnDbBimap envirAPI,nhit
举例----------Examples----------
## Make a Bimap that contains all the probes[#包含所有探针一个bimap]
require("hgu95av2.db")
mapWithMultiProbes <- toggleProbes(hgu95av2ENTREZID, "all")
count.mappedLkeys(hgu95av2ENTREZID)
count.mappedLkeys(mapWithMultiProbes)
## Check that it has both multiply and singly matching probes:[#检查,它有两个乘法和单独匹配的探针:]
hasMultiProbes(mapWithMultiProbes)
hasSingleProbes(mapWithMultiProbes)
## Make it have Multi probes ONLY:[它有唯一的多探针:]
OnlyMultiProbes = toggleProbes(mapWithMultiProbes, "multiple")
hasMultiProbes(OnlyMultiProbes)
hasSingleProbes(OnlyMultiProbes)
## Convert back to a default map with only single probes exposed[#转换回默认的图只有单探针暴露]
OnlySingleProbes = toggleProbes(OnlyMultiProbes, "single")
hasMultiProbes(OnlySingleProbes)
hasSingleProbes(OnlySingleProbes)
## List the filters on the inparanoid mapping [#列出的INPARANOID映射的过滤器]
# library(hom.Dm.inp.db)[库(hom.Dm.inp.db)]
# getBimapFilters(hom.Dm.inpANOGA)[getBimapFilters(hom.Dm.inpANOGA)]
## Here is how you can make a mapping with a[#这里是如何让一个映射]
##different filter than the default:[#比默认不同的过滤器:]
# f80 = setInpBimapFilter(hom.Dm.inpANOGA, "80%")[F80 = setInpBimapFilter(hom.Dm.inpANOGA,“80%”)]
# dim(hom.Dm.inpANOGA)[暗淡(hom.Dm.inpANOGA)]
# dim(f80)[昏暗(F80)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|