Learn R Programming

dartR (version 1.8.3)

gl.read.vcf: Converts a vcf file into a genlight object

Description

This function needs package vcfR. At the time of writing (August 2020) the package was no longer available from CRAN. To install the package check their github repository. https://github.com/knausb/vcfR. Once installed uncomment and run with installed=TRUE

Usage

gl.read.vcf(vcffile, verbose = 1, installed = FALSE)

Arguments

vcffile

-- a vcf file (works only for diploid data)

verbose

set to 2

installed

switch to run the function once vcfR package is installed

Value

A genlight object, with most slots filled.