Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gl.fst.pop

Calculate a pairwise fst values for populations in a genlight object


Description

This script calculates pairwise fst values based on the implementation in the StAMPP package (?stamppFst). It allows to run bootstrap to estimate probability of fst values to be different from zero. For detailed information please check the help pages (?stamppFst).

Usage

gl.fst.pop(x, nboots = 100, percent = 95, nclusters = 1)

Arguments

x

– name of the genlight containing the SNP genotypes [required]

nboots

– number of bootstraps to perform across loci to generate confidence intervals and p-values

percent

– the percentile to calculate the confidence interval around [defalut = 95]

nclusters

– the number of proccesor threads or cores to use during calculations.

Value

A matrix of distances between populations (class dist), if nboots =1, otherwise a list with Fsts (in a matrix), Pvalues (a matrix of pvalues), Bootstraps results (data frame of all runs). Hint: Use as.matrix(as.dist(fsts)) if you want to have a squared matrix with symmetric entries returned, instead of a dist object.

Author(s)

Bernd Gruber (bugs? Post to https://groups.google.com/d/forum/dartr)

Examples

gl.fst.pop(possums.gl, nboots=1)

dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.