cash-writeRA: RA Method: Write genotype data to RA format

$writeRAR Documentation

RA Method: Write genotype data to RA format

Description

Method for converting allele count data in an RA object back to an RA file.

Usage

RAobj$writeRA(snpsubset=NULL, indsubset=NULL, file="GUSbase")

Arguments

snpsubset

Integer vector giving the indices of the SNPs to retain in the VCF file

indsubset

Integer vector giving the indices of the samples to retain in the VCF file

file

Character giving the name of the VCF file to be written

Author(s)

Timothy P. Bilton

See Also

RA

Examples

file <- simDS()
RAfile <- VCFtoRA(file$vcf)
subset <- readRA(RAfile, snpsubset = 10:30)

## write the subset of the data back to VCF format
subset$writeRA(indsubset=1:10, file = "subset")


tpbilton/GUSbase documentation built on March 8, 2024, 1:35 p.m.