vcfR documentation

by
Brian J. Knaus and Niklaus J. Grünwald

Data import

We will use the example dataset provided by vcfR.

library(vcfR)
data(vcfR_example)

Creating *.vcf.gz format files.

The function write.vcf() can be used to create *.vcf.gz files (gzipped VCF files) from objects of class vcfR or chromR. These VCF files can be used for any downstream analysis which uses VCF files as input.

write.vcf(vcf, "test.vcf.gz")

Copyright © 2017, 2018 Brian J. Knaus. All rights reserved.

USDA Agricultural Research Service, Horticultural Crops Research Lab.