ReadVcf | R Documentation |
This function reads a vcf file and returns the contents as a genotype object.
ReadVcf(file = "")
file |
The path to the vcf file, can be compressed (.vcf or .vcf.gz). |
This function reads a vcf file, containing the tab separated fields CHROM, POS, REF, ALT, ID, QUAL, INFO, FORMAT, and an undefined additional number of columns with genotypes (column titles are the genotype names, typically patient IDs), and returns a genotype object (genotypes as a sparse matrix in vartrix conventions, and associated metadata as a data frame).
genotype object
genotypes <- ReadVcf("MyFolder/Myfile.vcf.gz")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.