MMfile {SpectralGEM} | R Documentation |
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.
MMfile(H = H,sampleInfo = id.info,outfile = "MMprime.txt")
H |
A square symmetirc matrix. |
sampleInfo |
A 4-column matrix containing sample_id, sex, case_control status, and group_id |
outfile |
The text file to write to. The default is set as MMprime.txt. |
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 estimated 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.
A text file is produced in the current directory.
Ann Lee, Diana Luca, Bert Klei, Bernie Devlin, and Kathryn Roeder
Maintainer: Jing Wu jwu@stat.cmu.edu
http://wpicr.wpic.pitt.edu/WPICCompGen/Spectral-GEM/directions.pdf
http://wpicr.wpic.pitt.edu/WPICCompGen/MMp/MMp_page.htm