write.sbams: write.sbams

Description Usage Arguments Details Value Author(s) Examples

Description

write an sbams format file

Usage

1
write.sbams(X, response, file)

Arguments

X

SnpMatrix object

response

vector or matrix of response variables. rows index subjects, columns index variables

file

Output file name.

Details

sbams is software from Xiaoquan Wen at https://github.com/xqwen/sbams

Value

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

Author(s)

Chris Wallace

Examples

1
2
3
4
5
6
7
8
9
data(testdata,package="snpStats")
A.small <- Autosomes[1:6,1:10]
R <- matrix(rnorm(12),ncol=2)
colnames(R) <- c("var1","var2")
f <- tempfile()

## write in suitable format for sbams
write.sbams(X=A.small, response=R, file=f)
unlink(f)

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