vcfR2lfmm: Reads a VCF object (including those not usually compatible...

View source: R/runtess.R

vcfR2lfmmR Documentation

Reads a VCF object (including those not usually compatible with LEA) and returns a genotypic matrix equivalent to the lfmm-format used by LEA The object returned by vcfR2lfmm can be used as input in the LEA function tess3. Optionally supply a character string with path where lfmm object will be saved This function is used in the function runtess

Description

Reads a VCF object (including those not usually compatible with LEA) and returns a genotypic matrix equivalent to the lfmm-format used by LEA

The object returned by vcfR2lfmm can be used as input in the LEA function tess3. Optionally supply a character string with path where lfmm object will be saved This function is used in the function runtess

Usage

vcfR2lfmm(vcf, out = NULL)

Arguments

vcf

Character string with path to input VCF file.

out

Character string with path where output lfmm file should be saved. Default is NULL.

Value

Matrix with genotypes in lfmm format


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.