Skip to content

Training set determination for genomic selection.

License

Notifications You must be signed in to change notification settings

oumarkme/TSDFGS

Repository files navigation

TSDFGS

CRAN status R-CMD-check Lifecycle: stable

This package provides two useful tools for determining a proper train genomic selection or prediction training set. To better predict of the genomic estimated breeding values (GEBV), the training set should be optimized as highly genomic correlated with the test set as possible. Several criteria have been published previously, including:

Our research provides an alternative criterion, r-score, which is Pearson's correlation between GEBVs and phenotypic values of a test set. We could determine both a reasonable training set size and an optimal training set for building a prediction model with the criteria. Both functions are provided in our package.

For more information on the method, please check our published article:

Installation

The development version of TSDFGS can be installed from GitHub (recommend):

# library(devtools)
install_github("oumarkme/TSDFGS", dependencies = TRUE, force = TRUE)

You may also install the stable version from CRAN, which the most recent function may not include.

install.packages("TSDFGS")
  • All functions were developed under r version 4.3.1 and tested in version 4.1.1. However, we recommend you use this package with R version > 4.0.
  • Rcpp and RcppEigen were used in the package. In addition, the core C++ scripts were published on GitHub for those who want a better performance.

Old versions are available on GitHub. You may download the source file and install it locally.

Main functions

  • r_score: available for calculating r-score (more).
  • pev_score: Function for calculating PEV score (more).
  • cd_score: Function for Calculating CD score (more).
  • optTrain: Function for determining optimal training set (more).
  • SSDFGS: Function for determining reasonable training set size (more).

Note that cd_score() and pev_score() functions are also available from the STPGA package by Deniz Akdemir. Try their package for advanced usage.

If you want to install the recent version of the r_score() function independently, you may download the rscore.cpp script from my GitHub repo and install it by:

library(Rcpp, RcppEigen)
download.file("https://raw.githubusercontent.com/oumarkme/TSDFGS/main/src/rscore.cpp", "rscore.cpp")
Rcpp::sourceCpp("rscore.cpp")

Example dataset

An example of data provided for testing this package. Zhao et al. (2011) published the rice genome data in their research. The raw dataset is available on the Rice Diversity website. The pre-arranged dataset is available in this GitHub repository, and you may be loaded in R by

download.file("https://github.com/oumarkme/TSDFGS/raw/main/data/geno.rda", "geno.rda")
load("geno.rda")

Authors

  • Jen-Hsiang Ou
    • Author, maintainer
    • E-mail: jen-hsiang.ou@imbim.uu.se{.email}
    • Department of Medical Biochemistry and Microbiology, Uppsala University, Uppsala, Sweden
  • Po-Ya Wu
    • Author
    • E-mail: Po-Ya.Wu@hhu.de{.email}
    • Institute for Quantitative Genetics and Genomics of Plants, Heinrich Heine University, Düsseldorf, Germany
  • Chen-Tuo Liao
    • Author, thesis advisor
    • E-mail: ctliao@ntu.edu.tw{.email}
    • Department of Agronomy, National Taiwan University, Taipei, Taiwan

Citing this package

If you make use of the TSDFGS package in your research, we would appreciate a citation of the following papers: