Description Usage Arguments Details Value Author(s) Examples
Simple wrapper to write.simple to write files in SNPHAP format
1 | write.snphap(X, a1 = NULL, a2 = NULL, file)
|
X |
SnpMatrix object |
a1 |
vector of first allele at each SNP |
a2 |
vector of second allele at each SNP |
file |
Output file name. |
If not allele codes are given, a1 and a2 will be set to 1 and 2 for all SNPs
No return value, but has the side effect of writing specified output file.
Chris Wallace
1 2 3 4 5 6 | data(testdata,package="snpStats")
A.small <- Autosomes[1:6,1:10]
f <- tempfile()
## write in suitable format for snphap
write.snphap(A.small, file=f)
unlink(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.