Learn R Programming

⚠️There's a newer version (3.1) of this package.Take me there.

PopGenReport (version 3.0.0)

A Simple Framework to Analyse Population and Landscape Genetic Data

Description

Provides beginner friendly framework to analyse population genetic data. Based on 'adegenet' objects it uses 'knitr' to create comprehensive reports on spatial genetic data. For detailed information how to use the package refer to the comprehensive tutorials or visit .

Copy Link

Version

Install

install.packages('PopGenReport')

Monthly Downloads

1,173

Version

3.0.0

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Bernd Gruber

Last Published

February 1st, 2017

Functions in PopGenReport (3.0.0)

costdistances

Calculates cost distances for a given landscape (resistance matrix)
genleastcost

Least-cost path analysis based on a friction matrix
bilby

Bilby data set
gd.kosman

Individual genetic distance calculation based on Kosman & Leonhard 2005
addpoly

Function to add a polygon to a landscape
addline

Function to add lines to landscape
emigration

Function to execute emigration on a pops object
allele.dist

Counts and visualises allele frequencies across loci and subpopulations
allel.rich

Calculates the allelic richness for a genind object
gd.smouse

Individual genetic distance calculation based on Smouse and Peakall 1999
landgenreport

Create a landscape genetic report
lgrMMRR

Multiple Matrix Regression with Randomization analysis
pairwise.fstb

Calculates pairwise fsts using a genind object (very fast)
init.popgensim

Initialise a spatial meta-population for a popgen simulation
pairwise.propShared

Calculates proportion of shared alleles per pairs of populations
landgen

A simulated genind data set with spatial coordinates
null.all

Checks for the presence of and determine the frequency of null alleles
mutation

Function to execute mutation on a pop data.frame
p2p

Function to calculate dispersal distances based on cost distances
opt.landgen

Function for optimising a landscape genetic analysis based on resistance layers
pops2genind

Function converts pops to a genind object
spautocor

Spatial autocorrelation following Smouse and Pekall 1999
treeScrub

A raster file [proportion of treeScrub per cell in Hawke Bay, NZ]
read.genetable

Function to convert textfiles into a genind object (the format required for popgenreport)
possums

A genlight object created via the read.genetable functions [possum data set from Sarre et al. 2015]
wassermann

Partial Mantel tests on costdistance matrices
reproduction

Function to execute reproduction on a pop data.frame
popgenreport

This is the main function of the package. It analyses an object of class genind and then creates a report containing the results of the analysis. There are several routines that can be optionally included in the analysis and there are multiple output options including a PDF with the report, R-code and an object (fname.results) containing all of the results, which can be used for further analyses.
run.popgensim

Run a time-forward popgen simulation