PolyBreedTools_App is a Shiny application for ancestry estimation using genotypic data. Designed to support any species and ploidy level, it enables users to estimate admixture proportions using reference populations and visualizes ancestry results interactively.
This app allows users to:
- Upload genotype files for reference and validation (aka test) individuals
- Upload a file mapping reference IDs to populations
- Specify organism ploidy
- Perform ancestry estimation using
breedTools::RpolyBreedTools()
- Visualize ancestry proportions interactively for each individual
Designed to work seamlessly with polyploid and non-model species.
This app requires the following R packages:
shiny
: Build the user interfaceBIGr
: For breedTools methods adapted to any ploidytidyverse
: For data manipulation and plottingscales
: For pretty formatting of percentagesviridis
: For color-blind friendly plotsopenxlsx
: For outputting ancestry matrices to Excel
Install all dependencies with:
install.packages(c("shiny", "tidyverse", "scales", "viridis", "openxlsx", "BIGr"))
# install breedTools from GitHub
remotes::install_github("Breeding-Insight/breedTools")
To run the app locally:
# Load shiny
library(shiny)
# Run the app from local directory
runApp("path/to/breedTools_Poly_App")
All files must be tab-separated and include headers.
- Rows: Individuals
- Columns: Marker values (e.g., 0, 1, 2)
- Row names: Individual IDs
- Same format as reference file
- Must contain the same markers in the same order
- Two columns:
ID
: Matches row names in the reference filePopulation
: Reference group or population name
- Select organism ploidy from the app interface (e.g., 2, 4, 6)
The app produces:
- An interactive ancestry barplot for each validation individual
- A downloadable Excel file with ancestry proportions:
- Rows: Validation individuals
- Columns: Reference populations
For publication, please cite:
- Funkhouser et al. for original breedTools methods
- Sandercock et al. for methods expansion to polyploidy
- This app:
Chinchilla-Vargas, Josue, Breeding Insight team. 2025. “PolyBreedTools_App: Shiny App for Genomic Ancestry Estimation in Any Species.” https://github.com/Breeding-Insight/breedTools_Poly_App RRID: SCR_027197