write.bed: Write a list of SNP object to the binary PLINK format (BED,...

Description Usage Arguments Details Value See Also Examples

View source: R/plinkformat.R

Description

Write a SNP object to the files in the binary PLINK format. For more information about the binary PLINK format, please check in the manual of PLINK.

Usage

1
write.bed(object, file)

Arguments

object

An object of SNP is a list consisting of 3 matrices, see the Details section for more details.

file

A prefix of output files for BED, BIM and FAM to be saved.

Details

The object should contain:

For more details about the binary PLINK format, please check http://zzz.bwh.harvard.edu/plink/binary.shtml

Value

NULL.

See Also

read.bed

Examples

1
2
3
4
5
6
#Load example data
data(example_SNP)

#Save 'simsnp' to the file as defined in 'save.file'
save.file <- file.path(tempdir(),"new_SNP")
write.bed(simsnp , save.file)

KRIS documentation built on Jan. 21, 2021, 5:08 p.m.