Learn R Programming

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

inbreedR

inbreedR provides functions and workflows for the analysis of inbreeding and heterozygosity-fitness correlations (HFCs) based on molecular markers such as microsatellites and SNPs. It has four main application areas:

  • Quantifying variance in inbreeding through estimation of identitiy disequilibria (g2), heterozygosity-heterozygosity correlations (HHC) and variance in standardized multilocus heterozygosity (sMLH)

  • Calculating g2 for small and large SNP datasets. The use of data.table and parallelization speed up bootstrapping and permutation tests

  • Estimating central parameters within HFC theory, such as the influence of inbreeding on heterozygosity and fitness, and their confidence intervals.

  • Exploring the sensitivity of these measures towards the number of genetic markers using simulations

You can install:

  • the latest released version from CRAN with

    install.packages("inbreedR")
  • the latest development version from github with

    if (packageVersion("devtools") < 1.6) {
      install.packages("devtools")
    }
    devtools::install_github("mastoffel/inbreedR", build_vignettes = TRUE)

If you encounter bug or if you have any suggestions for improvement, just contact me: martin.adam.stoffel[at]gmail.com

Get started with inbreedR

To get started read the vignette:

vignette("inbreedR_step_by_step", package = "inbreedR")

Copy Link

Version

Install

install.packages('inbreedR')

Monthly Downloads

304

Version

0.3.1

License

GPL-2

Maintainer

Martin A Stoffel

Last Published

March 21st, 2016

Functions in inbreedR (0.3.1)

check_data

Checks the data for consistency with the inbreedR working format.
bodyweight

Oldfield mouse bodyweight data
HHC

Calculates heterzygosity-heterozygosity correlations with standardized multilocus heterozygosities (sMLH)
r2_Wf

Expected r2 between inbreeding level (f) and fitness (W)
plot.inbreed

Plot an inbreed object
g2_microsats

Estimating g2 from microsatellite data
simulate_g2

Simulate $g2$
sMLH

Calculate multilocus heterozygosity (MLH)
g2_snps

Estimating g2 from larger datasets, such as SNPs
convert_raw

Genotype format converter
simulate_r2_hf

Calculates the expected squared correlation between heteorzygosity and inbreeding for simulated marker sets
print.inbreed

Print an inbreed object
mouse_msats

Oldfield mouse microsatellite data
r2_hf

Expected r2 between standardized multilocus heterozygosity (h) and inbreeding level (f)
inbreedR

inbreedR: Workflows for analysing variance in inbreeding and HFCs based on SNP or microsatellite markers.
MLH

Calculate multilocus heterozygosity (MLH)
mouse_snps

Oldfield mouse SNP data