read.vcfR(file, limit = 1e+07, nrows = -1, skip = 0, cols = NULL,
verbose = TRUE)write.vcf(x, file = "", mask = FALSE, APPEND = FALSE)
vcfR-class
.
See the vignette: vignette('vcf_data')
The function write.vcf takes an object of either class vcfR or chromR and writes the vcf data to a vcf.gz file (gzipped text). If the parameter 'mask' is set to FALSE, the entire object is written to file. If the parameter 'mask' is set to TRUE and the object is of class chromR (which has a mask slot), this mask is used to subset the data. If an index is supplied as 'mask', then this index is used, and recycled as necessary, to subset the data.
Bioconductor:
Use: browseVignettes('vcfR') to find examples.