conStruct (continuous Structure) ReadMe
This repo contains the code for the method conStruct - a statistical tool for modeling continuous and discrete population genetic structure.
The manuscript, data files, and analysis scripts associated with the publication "Inferring Continuous and Discrete Population Genetic Structure Across Space," have been moved, and can be accessed at the links below:
To install the most recent release of the conStruct R package:
Upon installation, the conStruct models will be compiled, which may spit lots of text, and possibly some warnings, to your screen. This is totally normal, and you should only be concerned if you get errors and the installation fails.
To install the development version from github:
Note that Windows users may have to download Rtools as a standalone executable before trying to install the conStruct R package.
A complete manual for all documented functions is available here.
In addition, there are four vignettes included in the package that walk through various steps in the analysis pipeline in detail. You can find them using:
# formatting data vignette(topic="format-data",package="conStruct") # how to run a conStruct analysis vignette(topic="run-conStruct",package="conStruct") # how to visualize the output of a conStruct model vignette(topic="visualize-results",package="conStruct") # how to compare and select between different conStruct models vignette(topic="model-comparison",package="conStruct")
There is also an example data file included in the package, which you can load using the command:
After referring to the manual and vignettes, please direct all queries to bradburd (at) msu.edu, or post as issues on the git repo.