Description Usage Arguments Value Author(s) Examples
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
1 |
file |
This is the path to a structure file. |
An object of the class "destruct", which comprises of a list that has the various information in a structure file:
Run parameters: a data frame indicating the nummber of individuals, loci populations and other run parameters listed in the structure file
Inferred clusters: a data frame indicating the proportion of samples assigned to each cluster
Expected heterozygosity: a dataframe with information on expected heterozygosity between individuals in same cluster
Mean FST value: a data frame with FST values for each cluster
Individual ancestry frequencies: a data frame containing inferred asncestry of all individuals
Allelewise ancestry frequency: a data frame with estimated allele frequencies in each cluster, across all markers
Joyce Njuguna and Marlee Labroo
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.