Learn R Programming

conStruct (version 1.0.6)

Models Spatially Continuous and Discrete Population Genetic Structure

Description

A method for modeling genetic data as a combination of discrete layers, within each of which relatedness may decay continuously with geographic distance. This package contains code for running analyses (which are implemented in the modeling language 'rstan') and visualizing and interpreting output. See the paper for more details on the model and its utility.

Copy Link

Version

Install

install.packages('conStruct')

Version

1.0.6

License

GPL-3

Maintainer

Last Published

January 8th, 2024

Functions in conStruct (1.0.6)

print.freq.data

An S3 print method for class freq.data
print.conStruct.results

An S3 print method for class conStruct.results
structure2conStruct

Convert a dataset from STRUCTURE to conStruct format
print.data.block

An S3 print method for class data.block
print.layer.params

An S3 print method for class layer.params
x.validation

Run a conStruct cross-validation analysis
conStruct-package

The 'conStruct' package.
make.admix.pie.plot

Make admixture pie plot
conStruct

Run a conStruct analysis.
calculate.layer.contribution

Calculate layer contribution
make.all.the.plots

Make output plots
conStruct.data

Example dataset used in a conStruct analysis
make.structure.plot

Make STRUCTURE output plot
compare.two.runs

Compare two conStruct runs
match.layers.x.runs

Match layers up across independent conStruct runs
data.block

Example data.block generated by a conStruct analysis