toSPIAData(SPIAssay)
toSPIAData()所属R语言包:SPIAssay
Function to code SNPs data into SPIA format
SPIA格式的功能代码单核苷酸多态性的数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function toSPIAData encodes SNPs information in a format accepted by SPIA, i.e., 0 for AA, 1 for BB, 2 for AB, NA for NoCall.
功能toSPIAData编码SNP信息SPIA,即0为AA,BB,AB,NA为NoCall接受的格式。
用法----------Usage----------
toSPIAData(SNPMatrix, encoding)
参数----------Arguments----------
参数:SNPMatrix
a matrix with a column for each cell line and a row for each SNP
每种单元系的列和行的一个矩阵与每个SNP
参数:encoding
a four elements ecnoding vector describing the encoding used in SNPMatrix. For instance, (0,2,1,-1) says that SNPMatrix uses 0 for AA, 2 for BB, 1 for AB, and -1 for NoCall
四元素ecnoding矢量在SNPMatrix使用的编码。例如,(0,2,1,-1)说,SNPMatrix使用0 2为AA,BB,AB型,和-1 NoCall
值----------Value----------
a matrix with a column for each cell line and a row for each SNP encoded with the SPIA format
每种单元系的列和行的一个矩阵与每个SNP与SPIA格式编码
(作者)----------Author(s)----------
Francesca Demichelis <demichelis@science.unitn.it>, Davide Prandi <prandi@science.unitn.it>
实例----------Examples----------
SNPcall <- c("snp1",0,1,2,-1)
encoding <- c(0,2,1,-1)
SPIA_SNPcall <- toSPIAData(SNPcall, encoding)
print(SNPcall)
print(SPIA_SNPcall)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|