MMfile(SpectralGEM)
MMfile()所属R语言包:SpectralGEM
Produce a .txt file that contains the MM prime matrix.
生成一个文本文件,其中包含MM首要矩阵。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function produces a .txt file of the proper format that contains the input data and the adjaceny matrix. Because a common choice for the latter is MM', this is called the MM prime matrix by default. This file is loaded to the main fortran program to do eigenvalue decomposition. Alternatively, the output file can be created from an input file containing M by the fortran program located at http://wpicr.wpic.pitt.edu/WPICCompGen/MMp/MMp\_page.htm.
该函数产生一个正确的格式。txt文件包含的输入数据和adjaceny矩阵。因为共同的选择,后者是MM“,默认情况下,这就是所谓的MM首要矩阵。此文件加载到主要的Fortran程序做特征值分解。另外,输出文件可以创建从输入文件中包含M的Fortran程序位于在http://wpicr.wpic.pitt.edu/WPICCompGen/MMp/MMp \ _page.htm的。
用法----------Usage----------
MMfile(H = H,sampleInfo = id.info,n=dim(H)[1],ntag=ntag,outfile = "MMprime.txt")
参数----------Arguments----------
参数:H
A square symmetirc matrix.
的方symmetirc矩阵。
参数:sampleInfo
A 4-column matrix containing sample\_id, sex, case\_control status, and group\_id
A 4列的矩阵,包含示例\ _id,性别,情况\ _control状态,和组\ _id
参数:n
Number of individual in the H matrix
中的H矩阵的个体数
参数:ntag
Number of tag SNPs used to generate the H matrix.
标签SNPs的数目用于生成的H矩阵。
参数:outfile
The text file to write to. The default is set as MMprime.txt.
写入到文本文件。的默认设置为MMprime.txt的。
Details
详细信息----------Details----------
The first two lines in the output file contains the information about the square matrix. The first line is the number of individuals in the matrix. The second line is the number of tag SNPs. The rest of the file is a table. Each line in the table contains the sample ID, gender, case/control status, group ID, and the square matrix.
在输出文件中的前两行包含的信息的方阵。第一行是在基体中的个体的数量。第二行是标签SNPs的数量。该文件的其余部分是一个表。表中的每一行包含状态,样品编号,性别,病例/对照组ID,并方阵。
值----------Value----------
A text file is produced in the current directory.
一个文本文件在当前目录中。
(作者)----------Author(s)----------
Ann Lee, Diana Luca, Bert Klei, Bernie Devlin, and Kathryn
Roeder
Maintainer: Jing Wu jwu@stat.cmu.edu
参考文献----------References----------
<h3>See Also</h3>
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|