write.phase: Write a snpStats object in PHASE/FastPHASE format

Description Usage Arguments Value Author(s) Examples

Description

see write.simple for general information

Usage

1
2
write.phase(X, a1 = rep(1, ncol(X)), a2 = rep(2, ncol(X)), bp = NULL,
  file)

Arguments

X

SnpMatrix object

a1

vector of first allele at each SNP

a2

vector of second allele at each SNP

bp

vector of base pair positions for each SNP

file

Output file name.

Value

No return value, but has the side effect of writing specified output files.

Author(s)

Chris Wallace

Examples

1
2
3
4
5
6
7
8
data(testdata,package="snpStats")
A.small <- Autosomes[1:6,1:10]
f <- tempfile()

## write in suitable format for PHASE
nsnps <- ncol(A.small)
write.phase(A.small, file=f)
unlink(f)

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