Learn R Programming

dartR (version 1.9.9.1)

gl.read.vcf: 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 = 2)

Arguments

vcffile

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

verbose

set to 2

Value

A genlight object.

Examples

Run this code
# NOT RUN {
test <- gl.read.vcf("your_data.vcf")
# }

Run the code above in your browser using DataLab