Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read.VCF

Reads a VCF file into a BED object


Description

Reads a https://samtools.github.io/hts-specs/Variant Call Format (VCF) file into a BED object, retaining bi-allelic SNPs only

Usage

read.VCF(fname,BiAllelic=TRUE,...)

Arguments

fname

VCF file name. The VCF file can be compressed (VCF.gz)

BiAllelic

Logical. If TRUE, only bi-allelic SNPs are retained, otherwise, all variant are kept

...

other arguments to pass to the function

Value

See Also

Examples

filepath <-system.file("extdata", "LCT.vcf.gz", package="gaston")
 x1 <- read.VCF( filepath )
 x1

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.