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

View source: R/gl.read.vcf.r

gl.read.vcfR Documentation

Converts a vcf file into a genlight object

Description

This function needs package vcfR, please install it. The converted genlight object does not have individual metrics. You need to add them 'manually' to the other$ind.metrics slot.

Usage

gl.read.vcf(vcffile, verbose = NULL)

Arguments

vcffile

A vcf file (works only for diploid data) [required].

verbose

Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2, unless specified using gl.set.verbosity].

Value

A genlight object.

Author(s)

Bernd Gruber (Post to https://groups.google.com/d/forum/dartr)

Examples

## Not run: 
obj <- gl.read.vcf(system.file('extdata/test.vcf', package='dartR'))

## End(Not run)

dartR documentation built on June 8, 2023, 6:48 a.m.