README.md

breedTools

R package encapsulating methods presented in Estimation of genome-wide and locus-specific breed composition in pigs published in Translational Animal Science (TAS). Note that functions contained in this package have been tested and used on Linux and Mac platforms only.

breedTools can be used to estimate breed composition from DNA microarray data and has been applied to the estimation of pig breed composition and purity.

The methods in this package require a set of reference data (genotypes).

Table of Contents

  1. Installation
  2. Usage

Installation

NOTE: Several functions in breedTools rely on another package, snpTools. First ensure devtools is installed, then install snpTools with:

devtools::install_github("funkhou9/snpTools")

then install breedTools with:

devtools::install_github("funkhou9/breedTools")

attaching the breedTools package with:

library(breedTools)

will allow access to reference pig datasets.

Usage

Key functions include:

Note other functions in snpTools such as snpTools::filter_geno(), which filters out SNPs based on MAF.

Example GWBC and KBP reference panels GWBC_ref_A, GWBC_ref_B, KBP_ref_A, and KBP_ref_B can be loaded with, for example:

data("GWBC_ref_A")

Note that GWBC_ref_A and KBP_ref_A are used to generate the results in the TAS paper.



funkhou9/breedTools documentation built on May 16, 2019, 4:04 p.m.