cScale(geneplotter)
cScale()所属R语言包:geneplotter
A function for mapping chromosome length to a number of points.
一个映射染色体长度的功能点。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a number of points (generally representing the number of points on a plot's axis), and a vector of chromosome lengths - will generate a vector of the same length as the one passed in containing scaling factors for each chromosome.
鉴于点(一般图的轴点的数量),以及染色体长度的向量 - 将产生一个相同长度的向量,作为一个在每个染色体含有比例因子通过。
用法----------Usage----------
cScale(points, cLengths, method=c("max", "relative"), chrom)
参数----------Arguments----------
参数:points
The number of points to scale the chromosome length to.
点的数量,规模的染色体长度。
参数:cLengths
A vector of chromosome lengths.
染色体长度的向量。
参数:method
Determines whether to use relative or absolute scaling. Default is "max" (absolute).
决定是否要使用相对或绝对的尺度。默认是“最大”(绝对)。
参数:chrom
Which chrom to determine the scale for
其中铬,以确定规模
Details
详情----------Details----------
The scale factor is calculated in a manner based on the method argument. If method is max, the factor is derived by dividing the points argument by each chromosome's length (in base pairs). If the method chosen is relative, then the scale is determined by dividing the points argument by the maximum chromsome length, and applying that value to each chromosome.
规模因素计算在method参数为基础的方式。如果方法是max,除以点,每条染色体的长度参数(碱基对)派生因素。如果选择的方法是relative,规模最大的染色体长度除以点参数,该值应用于每个染色体决定的。
作者(S)----------Author(s)----------
Jeff Gentry
参见----------See Also----------
cPlot
cPlot
举例----------Examples----------
## A bit of a hack to not have a package dependency on hgu95av2[#一个黑客位没有上hgu95av2包依赖]
## but need to fiddle w/ the warn level to not fail the example anyways.[#但需要摆弄W / WARN级别不失败的例子反正。]
curWarn <- options(warn=0)
on.exit(options(warn), add=TRUE)
if (require("hgu95av2.db")) {
z <- buildChromLocation("hgu95av2")
for (sc in c("max","relative"))
scale <- cScale(1000, chromLengths(z),sc,"Y")
} else print("This example needs the hgu95av2 data package")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|