Learn R Programming

snpStatsWriter (version 1.5-6)

snpStatsWriter-package: snpStatsWriter

Description

Write snpMatrix objects to file in other formats.

Arguments

Details

Package:
snpStatsWriter
Type:
Package
Version:
1.0
Date:
2012-10-29
License:
GPL
LazyLoad:
yes

References

David Clayton and Hin-Tak Leung (2007). An R package for analysis of whole-genome association studies. Hum Hered 64:45-51.

See Also

snpStats

Examples

Run this code
data(testdata,package="snpStats")
A.small <- Autosomes[1:6,1:10]
f <- tempfile()
## write in suitable format for snphap
nsnps <- ncol(A.small)
write.simple(A.small, a1=rep("1",nsnps), a2=rep("2",nsnps), gsep=" ",
             nullallele='0', file=f,
                write.sampleid=FALSE)
unlink(f)

Run the code above in your browser using DataLab