Skip to content

method for modeling continuous and discrete population genetic structure

Notifications You must be signed in to change notification settings

catherinecsun/conStruct

 
 

Repository files navigation

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:

Installation

To install the R package:

	library(devtools)
	install_github("gbradburd/conStruct",build_vignettes=TRUE)

Note that Windows users may have to download Rtools as a standalone executable before trying to install 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.

Getting Started

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:

	data(conStruct.data)

Contact

After referring to the manual and vignettes, please direct all queries to bradburd (at) msu.edu, or post as issues on the git repo.

About

method for modeling continuous and discrete population genetic structure

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 91.7%
  • Stan 7.3%
  • Other 1.0%