write.sbams

Description

write an sbams format file

Usage

1
  write.sbams(X, response, file)

Arguments

response

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

X

SnpMatrix object

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)