snpStatsWriter-package: snpStatsWriter

Description Details Author(s) References See Also Examples

Description

Write snpMatrix objects to file in other formats.

Details

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

Author(s)

Maintainer: Chris Wallace <chris.wallace@cimr.cam.ac.uk>

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

1
2
3
4
5
6
7
8
9
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)

chr1swallace/snpStatsWriter documentation built on May 13, 2019, 6:20 p.m.