Learn R Programming

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

hierfstat (version 0.04-22)

Estimation and Tests of Hierarchical F-Statistics

Description

Allows the estimation of hierarchical F-statistics from haploid or diploid genetic data with any numbers of levels in the hierarchy, following the algorithm of Yang (Evolution, 1998, 52(4):950-956; . Functions are also given to test via randomisations the significance of each F and variance components, using the likelihood-ratio statistics G.

Copy Link

Version

Install

install.packages('hierfstat')

Monthly Downloads

5,704

Version

0.04-22

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jerome Goudet

Last Published

December 4th, 2015

Functions in hierfstat (0.04-22)

boot.vc

Bootstrap confidence intervals for variance components
pop.freq

Allelic frequencies
qn2.read.fstat

Read QuantiNemo extended format for genotype files
exhier

Example data set with 4 levels, one diploid and one haploid locus
crocrussula

Genotypes and sex of 140 shrews Crocidura russula
write.bayescan

Writes a bayescan file
genind2hierfstat

Converts genind objects from adegenet into a hierfstat data frame
samp.within

Shuffles a sequence within groups defined by the input vector
ind.count

individual counts
sim.genot.t

Simulate data from a non-equilibrium island model
varcomp

Estimates variance components for each allele of a locus
read.fstat.data

Reads data from a FSTAT file
test.between.within

Tests the significance of the effect of test.lev on genetic differentiation
sexbias.test

Test for sex biased dispersal
g.stats

Calculates likelihood-ratio G-statistic on contingency table
g.stats.glob

Likelihood ratio G-statistic over loci
pairwise.neifst

Estimate pairwise FSTs according to Nei (1987)
varcomp.glob

Estimate variance components and hierarchical F-statistics over all loci
write.ped

Write ped file plink analysis
gtrunchier

Genotypes at 6 microsatellite loci of Galba truncatula from different patches in Western Switzerland
AIc

Calculates corrected Assignment Index
gstat.randtest

Goudet's G-statistic Monte Carlo test for genind object
test.within

Tests the significance of the effect of inner.level on genetic differentiation within blocks defined by outer.level
pairwise.WCfst

Estimate pairwise FSTs according to Weir and Cockerham (1984)
yangex

Example data set from Yang (1998) appendix
betas

Estimate \(\beta\)s per population and a bootstrap confidence interval
hierfstat

General information on the hierfstat package
samp.between.within

Shuffles a sequence
getal.b

Converts diploid genotypic data into allelic data
fstat

Wrapper for fst estimator from hierfstat package (from adegenet)
genet.dist

Classical genetic distances estimation
test.g

Tests the significance of the effect of level on genetic differentiation
samp.between

Shuffles a sequence among groups defined by the input vector
test.between

Tests the significance of the effect of test.lev on genetic differentiation
genot2al

Separates diploid genotypes in its constituant alleles
getal

Converts diploid genotypic data into allelic data
boot.ppfst

Performs bootstrapping over loci of pairwise Fst
basic.stats

Basic statistics
allele.count

Allelic counts
allelic.richness

Estimates allelic richness
eucl.dist

Estimates euclidian distances
eucl.dist.trait

calculates euclidian distance among populations for a trait
pcoa

Principal coordinate analysis
boot.ppfis

Performs bootstrapping over loci of population's Fis
read.fstat

Reads data from a FSTAT file
nb.alleles

Number of different alleles
pp.sigma.loc

wrapper to return per locus variance components
vec2mat

Reads a vector into a matrix
mat2vec

Rewrite a matrix as a vecor
indpca

PCA on a matrix of individuals genotypes frequencies
sim.freq

Simulates frequencies, for internal use only
print.pp.fst

print function for pp.fst
subsampind

Subsample a FSTAT data frame
sim.genot

Simulates genotypes in an island model at equilibrium
pp.fst

fst per pair
wc

Computes Weir and Cockrham estimates of Fstatistics
write.fstat

Write an Fstat data file
write.struct

Write structure file