Skip to content

Commit

Permalink
v2.4.2
Browse files Browse the repository at this point in the history
- Update dependencies to C++
- Update requirement R version
  • Loading branch information
oumarkme committed Oct 5, 2023
1 parent 8580032 commit 44cc907
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 33 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: TSDFGS
Type: Package
Title: Training Set Determination For Genomic Selection
Version: 2.4.1
Version: 2.4.2
Encoding: UTF-8
Date: 2023-04-09
Authors@R: c(
Expand All @@ -18,7 +18,7 @@ Authors@R: c(
role = c("aut", "ths"),
comment = c(ORCID = "0000-0001-9777-3701")))
URL: https://oumarkme.github.io/TSDFGS
Depends: R (>= 3.10)
Depends: R (>= 4.0)
Maintainer: Jen-Hsiang Ou <jen-hsiang.ou@imbim.uu.se>
Description: We propose an optimality criterion to determine the required training set, r-score, which is derived directly from Pearson's correlation between the genomic estimated breeding values and phenotypic values of the test set <doi:10.1007/s00122-019-03387-0>. This package provides two main functions to determine a good training set and its size.
License: GPL (>= 3)
Expand All @@ -30,5 +30,5 @@ Imports:
Rcpp,
RcppEigen
LinkingTo: Rcpp, RcppEigen
RoxygenNote: 7.2.1
RoxygenNote: 7.2.0
LazyData: true
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ import(dplyr)
import(ggplot2)
import(latex2exp)
import(parallel)
useDynLib(TSDFGS)
importFrom(Rcpp,sourceCpp)
useDynLib(TSDFGS, .registration = TRUE)
6 changes: 3 additions & 3 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' \dontrun{cd_score(geno[1:50, ], geno[51:100])}
#'
cd_score <- function(X, X0) {
.Call('_TSDFGS_cd_score', PACKAGE = 'TSDFGS', X, X0)
.Call(`_TSDFGS_cd_score`, X, X0)
}

#' PEV score
Expand All @@ -42,7 +42,7 @@ cd_score <- function(X, X0) {
#' \dontrun{pev_score(geno[1:50, ], geno[51:100])}
#'
pev_score <- function(X, X0) {
.Call('_TSDFGS_pev_score', PACKAGE = 'TSDFGS', X, X0)
.Call(`_TSDFGS_pev_score`, X, X0)
}

#' r-score
Expand All @@ -63,6 +63,6 @@ pev_score <- function(X, X0) {
#' \dontrun{r_score(geno[1:50, ], geno[51:100])}
#'
r_score <- function(X, X0) {
.Call('_TSDFGS_r_score', PACKAGE = 'TSDFGS', X, X0)
.Call(`_TSDFGS_r_score`, X, X0)
}

6 changes: 4 additions & 2 deletions R/TSDFGS.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## usethis namespace: start
#' TSDFGS
#' @description We propose an optimality criterion to determine the required training set, r-score, which is derived directly from Pearson's correlation between the genomic estimated breeding values and phenotypic values of the test set <doi:10.1007/s00122-019-03387-0>. This package provides two main functions to determine a good training set and its size.
#'
#' @importFrom Rcpp sourceCpp
#' @docType package
#' @useDynLib TSDFGS
#' @useDynLib TSDFGS, .registration = TRUE
#' @name TSDFGS
## usethis namespace: end
NULL
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/FGCM.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/SSDFGS.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/TSDFGS.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/cd_score.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/geno.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/nt2r.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions docs/reference/optTrain.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/pev_score.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/r_score.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/subpop.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

0 comments on commit 44cc907

Please sign in to comment.