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

R语言 SNPRelate包 snpgdsGetGeno()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:13:39 | 显示全部楼层 |阅读模式
snpgdsGetGeno(SNPRelate)
snpgdsGetGeno()所属R语言包:SNPRelate

                                         To get a genotype matrix
                                         为了得到一个基因型矩阵

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

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

To get a genotype matrix from a specified GDS file
为了得到一个基因型矩阵从指定的GDS文件


用法----------Usage----------


snpgdsGetGeno(gdsobj, sample.id=NULL, snp.id=NULL, snpfirstorder=NULL, verbose=TRUE)



参数----------Arguments----------

参数:gdsobj
the gdsclass object in the gdsfmt package
gdsclass对象在gdsfmt包


参数:sample.id
a vector of sample id specifying selected samples; if NULL, all samples are used
一个向量的样品ID指定选取的样本,如果为NULL,所有样本都


参数:snp.id
a vector of snp id specifying selected SNPs; if NULL, all SNPs are used
一个向量指定选定的单核苷酸多态性SNP ID,如果为NULL,所有的SNP


参数:snpfirstorder
if TRUE, genotypes are stored in the individual-major mode, (i.e, list all SNPs for the first individual, and then list all SNPs for the second individual, etc); if NULL, determine automatically
如果为true,基因型存储在个人主要的模式,(即列出所有SNP的第一个人,然后列出所有SNP的第二个人,等),如果为NULL,自动确定


参数:verbose
if TRUE, show information
如果为TRUE,显示信息


值----------Value----------

Return an integer matrix.
返回一个整数基质。


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


Xiuwen Zheng <a href="mailto:zhengx@u.washington.edu">zhengx@u.washington.edu</a>



参见----------See Also----------

snpgdsCreateGeno, snpgdsCreateGenoSet, snpgdsCombineGeno
snpgdsCreateGeno,snpgdsCreateGenoSet,snpgdsCombineGeno


实例----------Examples----------


# open an example dataset (HapMap)[打开示例数据集(人类基因组单体型图)]
genofile <- openfn.gds(snpgdsExampleFileName())

snpset <- sample(read.gdsn(index.gdsn(genofile, "snp.id")), 1000)
mat <- snpgdsGetGeno(genofile, snp.id=snpset)
mat[!is.element(mat, c(0,1,2))] <- NA
dim(mat)

# close the file[关闭文件]
closefn.gds(genofile)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 06:01 , Processed in 0.029471 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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