Giter VIP home page Giter VIP logo

tsdfgs's Introduction

TSDFGS

CRAN status R-CMD-check Lifecycle: stable

This package provides two useful tools for determining a proper training set for genomic selection or prediction. In order to have a better prediction 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 derived from 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.2.0 and tested in both version 3.6.3 and 4.1.1. However, we recommend you to use this package with R version > 3.6.3.
  • 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.

Main functions

  • r_score: Function 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() are using functions from STPGA package. Try their package for advanced usage.

If you wanted to install the recent version of 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 data provided for testing this package. The rice genome data was published by Zhao et al. (2011) in their research. Raw dataset is available at the Rice Diversity website. Pre-arranged dataset is available in this GitHub repository and you may 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: [email protected]
    • Department of Medical Biochemistry and Microbiology, Uppsala University, Uppsala, Sweden
  • Po-Ya Wu
    • Author
    • E-mail: [email protected]
    • Institute for Quantitative Genetics and Genomics of Plants, Heinrich Heine University, Düsseldorf, Germany
  • Chen-Tuo Liao
    • Author, thesis advisor
    • E-mail: [email protected]
    • Department of Agronomy, National Taiwan University, Taipei, Taiwan

Citing this package

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

  • Ou, J.-H., and Liao, C.-T. Training set determination for genomic selection. Theor Appl Genet 132, 2781–2792 (2019). https://doi.org/10.1007/s00122-019-03387-0
  • Wu, P.-Y., Ou, J.-H., and Liao, C.-T. Sample size determination for training set optimization in genomic prediction. Under review (2022).

tsdfgs's People

Contributors

oumarkme avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.