build.knowns(TRAMPR)
build.knowns()所属R语言包:TRAMPR
Automatically Build Knowns Database
自动建立已知数据库
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function uses several filters to select likely knowns, and construct a TRAMPknowns object from a TRAMPsamples object. Samples are considered to be “potential knowns” if they have data for an adequate number of enzyme/primer combinations, and if for each combination they have either a single peak, or a peak that is “distinct enough” from any other peaks.
此功能使用多个过滤器,选择可能的已知,构建一个TRAMPknowns对象,从TRAMPsamples对象。样品被认为是“潜在的已知”,如果它们有足够数量的酶/引物组合的数据,如果针对每个组合,它们有一个单峰,或者是“不同的足够的”从任何其他峰的峰。
用法----------Usage----------
build.knowns(d, min.ratio=3, min.comb=NA, restrict=FALSE, ...)
参数----------Arguments----------
参数:d
A TRAMPsamples object, containing samples from which to build the knowns database.
ATRAMPsamples对象,样品,从而建立了已知的数据库。
参数:min.ratio
Minimum ratio of maximum to second highest peak to accept known (see Details).
最小比率最高至第二高峰接受已知的(见详情)。
参数:min.comb
Minimum number of enzyme/primer combinations required for each known (see Details for behaviour of default).
需要为每个已知的酶/引物组合的最小数量(见违约行为的详细信息)。
参数:restrict
Logical: Use only cases where d$info$species is non-blank? (These are assumed to come from samples of a known species. However, it is not guaranteed that all samples with data for species will become knowns; if they fail either the min.ratio or min.comb checks they will be excluded.)
逻辑:唯一的情况下d$info$species非空白? (这些假定来自一个已知的物种样品,然而,它不能保证所有样本与species数据将成为已知,如果他们失败min.ratio或min.comb检查,他们将被排除在外。)
参数:...
Additional arguments passed to TRAMPknowns (e.g. cluster.pars, file.pat and any additional objects).
额外的参数传递给TRAMPknowns(如:cluster.pars,file.pat和任何其他对象)。
Details
详细信息----------Details----------
For all samples and enzyme/primer combinations, the ratio of the largest to the second largest peak is calculated. If it is greater than min.ratio, then that combination is accepted. If the sample has at least min.comb valid enzyme/primer combinations, then that sample is included in the knowns database. If min.comb is NA (the default), then every enzyme/primer combination present in the data is required.
对所有样品和酶/引物组合,最大的所述第二最大峰的比率来计算。如果它是大于min.ratio,然后该组合被接受。如果样本具有至少min.comb有效的酶/引物组合,然后该样品中包含的已知数据库。如果min.comb是NA(默认值),那么每一个数据中存在的酶/引物组合是必需的。
值----------Value----------
A new TRAMPknowns object. It will generally be neccessary to edit this object; see read.TRAMPknowns for details on how to write, edit, and read back a modified object.
一个新的TRAMPknowns对象。编辑这个对象一般是很有必要的,看到read.TRAMPknowns怎么写,编辑和读回修改的对象的详细信息。
注意----------Note----------
If two peaks have the same height, then using min.ratio=1 will not allow the entry as part of the knowns database; use min.ratio=0 instead if this is desired. In this case, the peak chosen is unspecified.
如果两个峰具有相同的高度,然后使用min.ratio=1不会允许输入的已知数据库的一部分,使用min.ratio=0,而是如果这是需要的。在这种情况下,所选择的峰是不确定的。
Note that this function is sensitive to data quality. In particular split peaks may cause a sample not to be added. These samples may be manually added using add.known.
请注意,这个函数是敏感的数据质量。特别裂峰可能会导致不添加样品。这些样品可以手动添加使用add.known。
实例----------Examples----------
data(demo.samples)
demo.knowns.auto <- build.knowns(demo.samples, min.comb=4)
plot(demo.knowns.auto, cex=.75)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|