Skip to content

Commit 32057c4

Browse files
committed
Correcting CRAN errors (2nd try)
1 parent 7800574 commit 32057c4

File tree

6 files changed

+26
-22
lines changed

6 files changed

+26
-22
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Title: Statistical Inference and Prediction of Annotations in Phylogenetic Trees
33
Authors@R: person("George", "Vega Yon", role=c("aut","cre"),
44
email="g.vegayon@gmail.com", comment = c(ORCID = "0000-0002-3171-0844"))
55
Version: 0.2-1
6-
Date: 2022-01-01
7-
Description: aphylo implements a parsimonious evolutionary model to analyze and
6+
Date: 2022-01-14
7+
Description: Implements a parsimonious evolutionary model to analyze and
88
predict gene-functional annotations in phylogenetic trees as described in Vega
99
Yon et al. (2021) <doi:10.1371/journal.pcbi.1007948>. With a focus on
1010
computational efficiency, aphylo makes it possible to estimate pooled

R/formulas.R

+9-9
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ APHYLO_PARAM_NAMES <- c(
8989
#' The vector `APHYLO_PARAM_DEFAULT` lists the starting values for the parameters
9090
#' in the model. The current defaults are:
9191
#'
92-
#' - `psi0`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$psi0}
93-
#' - `psi1`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$psi1}
94-
#' - `mu_d0`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$mu_d0}
95-
#' - `mu_d1`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$mu_d1}
96-
#' - `mu_s0`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$mu_s0}
97-
#' - `mu_s1`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$mu_s1}
98-
#' - `eta0`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$eta0}
99-
#' - `eta1`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$eta1}
100-
#' - `Pi`: \Sexpr[results=text]{as.list(aphylo::APHYLO_PARAM_DEFAULT)$Pi}
92+
#' - `psi0`: 0.10
93+
#' - `psi1`: 0.05
94+
#' - `mu_d0`: 0.90
95+
#' - `mu_d1`: 0.50
96+
#' - `mu_s0`: 0.10
97+
#' - `mu_s1`: 0.05
98+
#' - `eta0`: 1.00
99+
#' - `eta1`: 1.00
100+
#' - `Pi`: 0.50
101101
#'
102102
APHYLO_PARAM_DEFAULT <- structure(
103103
.Data = c(.1, .05, .9, .5, .1, .05, 1.0, 1.0, .5),

inst/tinytest/test-predict-ans0.rds

4.86 KB
Binary file not shown.

inst/tinytest/test-predict-ans1.rds

1.38 KB
Binary file not shown.

inst/tinytest/test-predict.r

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ans0 <- c(
2424
)[with(atree$tree, c(tip.label, node.label))]
2525

2626
# Computing brute-force and using the pre-order
27-
ans1 <- predict_brute_force(atree, psi, mu_d = mu, mu_s = mu, Pi)
27+
# ans1 <- predict_brute_force(atree, psi, mu_d = mu, mu_s = mu, Pi)
28+
# saveRDS(ans1, "inst/tinytest/test-predict-ans1.rds")
29+
ans1 <- readRDS("test-predict-ans1.rds")
2830
ans2 <- predict_pre_order(atree, psi, mu_d = mu, mu_s = mu, eta, Pi, loo = FALSE)
2931

3032

@@ -62,7 +64,9 @@ expect_equivalent(ans1$posterior, ans2[,1])
6264
set.seed(122331)
6365
atree <- raphylo(4, psi = psi, mu_d = mu, mu_s = mu, eta = eta, Pi = Pi)
6466

65-
ans0 <- predict_brute_force(atree, psi, mu_d = mu, mu_s = mu, Pi)
67+
# ans0 <- predict_brute_force(atree, psi, mu_d = mu, mu_s = mu, Pi)
68+
# saveRDS(ans0, file = "inst/tinytest/test-predict-ans0.rds")
69+
ans0 <- readRDS("test-predict-ans0.rds")
6670
ans1 <- predict_pre_order(atree, psi, mu_d = mu, mu_s = mu, eta, Pi, loo = FALSE)
6771

6872
expect_equivalent(ans0$posterior, ans1[,1])

man/aphylo_mcmc.Rd

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)