View source: R/genomic_matrix.R
writeBED | R Documentation |
This function reads a BED file and writes a subset of it based on a list of SNP (rsids) identifiers to output BED, BIM, and FAM files.
writeBED(
bedRead = NULL,
bimRead = NULL,
famRead = NULL,
bedWrite = NULL,
bimWrite = NULL,
famWrite = NULL,
rsids = NULL,
endian = .Platform$endian,
useBytes = TRUE
)
bedRead |
The full path to the input BED file to read. |
bimRead |
The full path to the input BIM file to read. |
famRead |
The full path to the input FAM file to read. |
bedWrite |
The full path to the output BED file to write. |
bimWrite |
The full path to the output BIM file to write. |
famWrite |
The full path to the output FAM file to write. |
rsids |
A character vector containing SNP rsids to select from the BIM file. |
No return value. Files are written to the specified output paths.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.