writeBED: Write a subset of data from a BED file

View source: R/genomic_matrix.R

writeBEDR Documentation

Write a subset of data from a BED file

Description

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.

Usage

writeBED(
  bedRead = NULL,
  bimRead = NULL,
  famRead = NULL,
  bedWrite = NULL,
  bimWrite = NULL,
  famWrite = NULL,
  rsids = NULL,
  endian = .Platform$endian,
  useBytes = TRUE
)

Arguments

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.

Value

No return value. Files are written to the specified output paths.


psoerensen/qgg documentation built on March 9, 2024, 10:02 p.m.