This repository holds the R package deStructure, which facilitates working with the program STRUCTURE (Pritchard et al., 2003). Scripts which process STRUCTURE output have only been optimized for the ADMIXTURE model with the flags below, i.e. no use of the POPINFO flag or MAPDISTANCES, etc.
This package, deStructure, has 6 functions:
deStruct - Parses structure output files and stores information in a S3 class object
average_runs - Averages across replications of STRUCTURE for a given value of K. Note that in this implementation, the user must ensure that the clusters are in a consistent order for the input.
structure_plot - Visualize individual allele ancestries, to delineate the likely level of population subdivision
mainparams -This functions generates the mainparams file needed for the program STRUCTURE v 2.3.
extraparams - This functions generates the extraparams file needed for the program STRUCTURE v 2.3.
structure_scriptwriter - This function writes scripts suitable for running STRUCTURE on a UNIX-based high-performance computing cluster up to a given number of populations and replications
Parameters for which output parsing was optimized:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.