Learn R Programming

diveRsity (version 1.9.89)

A Comprehensive, General Purpose Population Genetics Analysis Package

Description

Allows the calculation of both genetic diversity partition statistics, genetic differentiation statistics, and locus informativeness for ancestry assignment. It also provides users with various option to calculate bootstrapped 95\% confidence intervals both across loci, for pairwise population comparisons, and to plot these results interactively. Parallel computing capabilities and pairwise results without bootstrapping are provided. Weir and Cockerham's 1984 F-statistics are also calculated. Various plotting features are also provided, as well as Chi-square tests of genetic heterogeneity are also provided. Functionality for the calculation of various diversity parameters is possible for RAD-seq derived SNP data sets containing thousands of marker loci. A shiny application for the development of microsatellite multiplexes is also available.

Copy Link

Version

Install

install.packages('diveRsity')

Monthly Downloads

196

Version

1.9.89

License

GPL (>= 2)

Maintainer

Last Published

December 9th, 2016

Functions in diveRsity (1.9.89)

pwHt

Pairwise directional differentiation heterozygosity components
SNPs

Example input format for snp2gp function
diffCalcHarm

C++ level function for global total and sub-population heterozygosity
glbWCcpp

C++ level function for Weir & Cockerham F-stats
plotter

Internal interactive plot generation
rgp

Efficient genepop reader
corPlotter

An internal function for plotting the relationship between differentiation and locus polymorphism
rarefactor

Rarefaction method for allelic richness
tabMerge

C++ level function for combining pw hsums
inCalc

A function to calculate locus informative for the inference of ancestry
pwWCcpp

C++ level function for pairwise Weir & Cockerham F-stats
arHex

Bootstrapped allelic richness and heterozygosity
multiplot

Winston Chang's multiplot function for arranging ggplots into a grid
Hex

Calculates expected heterozygosity for divRatio
bsFun

divMigrate bootstrap routine
arSample

Resample based calculation of allelic richness
fstWC

Calculation of Weir and Cockerham's F-stats
expHet

C++ level observed heterozyosity calculation
hweFun

C++ level function for global total and sub-population heterozygosity
haploDiv

A function, allowing the calculation of Weir & Cockerham's (1984) $F_{ST}$ from haploid genotypes in the genepop
obsHet

C++ level observed heterozyosity calculation
bigDivPart

Genetic differentiation statistics and their estimators for high throughput data (e.g. RAD-seq derived SNPS)
Tab

C++ level allele frequency calculation
diffCalc

A faster function for calculating genetic differentiation statistics
genos2mat

Convert genos loci into presance absence matrices
divBasic

A function to calculate basic population parameters such as allelic richness, observed heterozygosity, as well as expected heterozygosity.
bsHetCalc

C++ level observed heterozyosity calculation
AR

Count alleles per locus
arp2gen

Fast and simple conversion of arlequin (.arp) genotype files to genepop files, form within the R environment.
divSimCo

Similarity coefficients for co-dominant diploid genenotype data
divMigrateOnline

An experimental function for the detection of directional differentiation from microsatellite data.
gpSampler

Randomly sample a genepop file
fastDivPart

Genetic differentiation statistics and their estimators
chiCalc

Testing sample independence from genotype counts
fileReader

Genepop and arlequin file conversion to data.frame
bigPreDiv

Memory efficient diversity statistic calculations
allCount

C++ level observed heterozyosity calculation
myTab

C++ level allele frequency calculation
basicStats

Claculate basic descriptive population parameters from a genepop genotype file
polyIn

A function for calculating informativeness for the inference of ancestry from loci of any ploidy.
inFunc

Internal calculation of Rosenberg et al's In
varFunc

C++ level function for global total and sub-population heterozygosity
divPart

Genetic differentiation statistics and their estimators
pwDivCalc

Pairwise diversity calculations for directional migration
pre.divLowMemory

Internal differentiation calculations
statCalc

Internal differentiation calculator
pwTabMerge

C++ level function for generating pairwise hsums for fst calculation
hweTab

C++ level observed heterozyosity calculation
divRatio

Calculates the standardised diversity ratios relative to a 'yardstick' reference population following Skrbinsek et al., 2012.
snp2gen

Conversion function for SNP nucleotide genotype matrix to a genepop file.
readGenepopX

Internal genepop file reader
readGenepop

A function to calculate allele frequencies from genepop files.
writeBoot

Generate bootstrap pairwise matrices per locus
pwHCalc

C++ level calculation of total and sub-population heterozygosity
regroup

regroup individuals in a genepop file according to an index
divMigrateOnline_test

An experimental function for the detection of directional differentiation from microsatellite data.
divMigrate

An experimental function for the detection of directional differentiation from microsatellite data.