$writeVCF | R Documentation |
Method for converting allele count data in an RA object back to VCF format.
RAobj$writeVCF(snpsubset=NULL, indsubset=NULL, file="GUSbase", IDuse=NULL)
Integer vector giving the indices of the SNPs to retain in the VCF file
Integer vector giving the indices of the samples to retain in the VCF file
Character giving the name of the VCF file to be written
Character vector specifying alternative samples names. Useful for anonymizing sample IDs.
Timothy P. Bilton
RA
file <- simDS()
RAfile <- VCFtoRA(file$vcf)
subset <- readRA(RAfile, snpsubset = 10:30)
## write the subset of the data back to VCF format
subset$writeVCF(file = "subset")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.