deStruct: Parse STRUCTURE output files

Description Usage Arguments Value Author(s) Examples

Description

This function parses structure output storing Run parameters, Inferred clusters, Expected heterozygosity, Mean FST value, Individual ancestry frequencies and Allelewise ancestry frequency information into a S3 class object

Usage

1

Arguments

file

This is the path to a structure file.

Value

An object of the class "destruct", which comprises of a list that has the various information in a structure file:

Author(s)

Joyce Njuguna and Marlee Labroo

Examples

1
2
3
4
5
#import the example structure file installed with deStructure
mypath <- system.file("extdata", "myresults_default50000k2r1_f", package = "deStructure")

#Run function DeStruct on file
myDestructObject <- deStruct(mypath)

labroo2/deStructure documentation built on May 8, 2019, 8:58 p.m.