vcf2fastStructure: Convert VCF file/object to fastStructure input file (for SNP...

View source: R/run_fastStructure.R

vcf2fastStructureR Documentation

Convert VCF file/object to fastStructure input file (for SNP data) Converts a VCF file or vcfR object with SNP data into a fastStructure file.

Description

Convert VCF file/object to fastStructure input file (for SNP data)

Converts a VCF file or vcfR object with SNP data into a fastStructure file.

Usage

vcf2fastStructure(vcf, IndvNames = TRUE, out = NULL, OtherData = NULL)

Arguments

vcf

Character string with path to input VCF, or an object of class vcfR.

IndvNames

Logical indicating if the first column of the output file should include the names of individuals. Default TRUE.

out

Path where output file should be written.

OtherData

NULL (the default) or a matrix with up to five (if IndvNames TRUE) or six (if IndvNames FALSE) columns of metadata. If non-NULL, the number of rows must equal number of individuals in the VCF.

Value

Character string with value of 'out'.


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