AlleloBin is an R package designed to automate the conversion of imprecise fragment sizes from automated DNA sequencers into representative, discrete allele sizes. It implements and extends the least-squares minimization algorithm developed by Idury & Cardon (1997) to eliminate time-consuming manual intervention in high-throughput genotyping workflows.
If you use this software, please cite: > Idury, R. M., & Cardon, L. R. (1997). A least-squares algorithm for a semi-automated allele sizing system. Genome Research, 7(11), 1104-1109.
You can install the development version of AlleloBin
directly from GitHub using the devtools package:
# Install devtools if you haven't already
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
# Install AlleloBin
devtools::install_github("vpprasanth/AlleloBin")library(AlleloBin)
# 1. Load your raw fragment size genotyping data
my_data <- read.table(system.file("extdata", "data.txt", package = "AlleloBin"), header = FALSE)
# 2. Load the corresponding marker configuration data (repeat lengths, etc.)
marker_info <- read.table(system.file("extdata", "repeat_length.txt", package = "AlleloBin"), header = FALSE)
# 3. Extract the repeat lengths vector from the repeat_length file
repeat_lens <- marker_info$V1
# 4. Run the binning process
results <- allele_binning(data = my_data, repeat_lengths = repeat_lens, ploidy = 2)
# Save results to Excel
save_results(results, "AlleloBin_Output.xlsx")If you prefer a graphical layout to upload your files and look at histograms, simply launch the built-in app:
library(AlleloBin)
AlleloBin()