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

R语言 snpStats包 XSnpMatrix-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 14:49:45 | 显示全部楼层 |阅读模式
XSnpMatrix-class(snpStats)
XSnpMatrix-class()所属R语言包:snpStats

                                        Class "XSnpMatrix"
                                         类“XSnpMatrix”

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

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

This class extends the  SnpMatrix-class to
这个类扩展到SnpMatrix-class


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("XSnpMatrix", x,   diploid). Such objects have an additional slot to objects of class "SnpMatrix" consisting of  a logical array of the same length as the number of rows. This array indicates whether genotypes in that row are diploid (TRUE) or haploid (FALSE as, for example,  SNPs on the X chromosome for males).
创建对象可以通过检测的形式new("XSnpMatrix", x,   diploid)。这样的对象有一个额外的slot类对象"SnpMatrix"组成一个逻辑阵列的行数相同长度。这个数组表示是否在该行的基因型二倍体(TRUE)或单倍体(FALSE作为,例如,男性的X染色体上的SNP)。


插槽----------Slots----------




.Data: Object of class "matrix" and storage mode
.Data类"matrix"和存储模式:对象




diploid: Object of class "logical" indicating
diploid:Object类的"logical"说明


延伸----------Extends----------

Class "SnpMatrix", directly, with explicit coerce. Class "matrix", by class "SnpMatrix". Class "structure", by class "SnpMatrix". Class "array", by class "SnpMatrix". Class "vector", by class "SnpMatrix", with explicit coerce. Class "vector", by class "SnpMatrix", with explicit coerce.
类"SnpMatrix",直接,明确的要挟。类"matrix"类"SnpMatrix"。类"structure"类"SnpMatrix"。类"array"类"SnpMatrix"。类"vector",类“SnpMatrix”,明确要挟。类"vector",类“SnpMatrix”,明确要挟。


方法----------Methods----------




[] signature(x = "XSnpMatrix", i = "ANY", j = "ANY",
[]的<code>签名(X =的“XSnpMatrix”,“任何”,J =“任何”




[<- signature(x = "XSnpMatrix", i = "ANY", j = "ANY", "XSnpMatrix"): subset
[< - signature(x = "XSnpMatrix", i = "ANY", j = "ANY", "XSnpMatrix"):子集




coerce signature(from = "XSnpMatrix", to =
要挟的<code>签名(=“XSnpMatrix”,以=




coerce signature(from = "SnpMatrix", to =         "XSnpMatrix"): maps a SnpMatrix to an XSnpMatrix. Ploidy is inferred from the genotype data since haploid genotypes should always be coded as homozygous. After inferring ploidy, heterozygous calls for haploid
强制signature(from = "SnpMatrix", to =         "XSnpMatrix"):映射到XSnpMatrix SnpMatrix,。套数是从基因型数据推断,因为单倍体基因型应始终编码为纯合子。推断倍体,单倍体杂合子检测后




show signature(object = "XSnpMatrix"): map to codes
秀signature(object = "XSnpMatrix"):映射到代码




summary signature(object = "XSnpMatrix"): returns the distribution of ploidy, together with summaries of the data frames returned by
摘要signature(object = "XSnpMatrix"):返回套数的分布,汇总数据框返回


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


David Clayton <a href="mailto:david.clayton@cimr.cam.ac.uk">david.clayton@cimr.cam.ac.uk</a>



参考文献----------References----------

<h3>See Also</h3>  <code>SnpMatrix-class</code>

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


data(testdata)
summary(Xchromosome)

# display the first 10 snps of the first 10 samples[显示的第10个样品的前10个SNPs]
print(as(Xchromosome[1:10,1:10],'character'))

# convert the empty strings (no-calls) explicitly to "NC" before[“数控”之前明确转换为空字符串(不要求)]
# writing to an (anonymous and temporary) csv file[写入csv文件(匿名和临时)]
csvfile <- tempfile()
write.csv(file=csvfile, gsub ('^$', 'NC',
                              as(Xchromosome[1:10,1:10], 'character')
                             ), quote=FALSE)
unlink(csvfile)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 14:57 , Processed in 0.026259 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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