Skip to content

Commit 27126e3

Browse files
committed
Changed description added examples
1 parent 884bc67 commit 27126e3

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

DESCRIPTION

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
Package: aphylo
2-
Title: Statistical Inference of Annotated Phylogenetic Trees
2+
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"))
5-
Version: 0.1.99
6-
Date: 2021-06-07
7-
Description: The `aphylo` R package implements estimation and data imputation
8-
methods for Functional Annotations in Phylogenetic Trees. The core
9-
function consists on the computation of the log-likelihood of observing
10-
a given phylogenetic tree with functional annotation on its leafs, and
11-
probabilities associated to gain and loss of functionalities, including
12-
probabilities of experimental misclasification. `aphylo` works smoothly
13-
with popular tools for analysis of phylogenetic data such as `ape` R
14-
package, "Analyses of Phylogenetics and Evolution."
5+
Version: 0.2-0
6+
Date: 2021-11-16
7+
Description: aphylo implements a parsimonious evolutionary model to analyze and
8+
predict gene-functional annotations in phylogenetic trees as described in Vega
9+
Yon et al. (2021) <doi:10.1371/journal.pcbi.1007948>. With a focus on
10+
computational efficiency, aphylo makes it possible to estimate pooled
11+
phylogenetic models, including thousands (hundreds) of annotations (trees) in
12+
the same run. The package also provides the tools for visualization of
13+
annotated phylogenies, calculation of posterior probabilities (prediction,)
14+
and goodness-of-fit assessment featured in Vega Yon et al. (2021).
1515
Depends: R (>= 3.1.1), ape (>= 5.0)
1616
LazyData: true
1717
Imports: Rcpp (>= 0.12.1), Matrix, methods, coda, fmcmc,

R/aphylo-ape-info.R

+7
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ Ntip.multiAphylo_pruner <- function(phy) {
8686
#'
8787
#' @name aphylo-info
8888
#' @family information
89+
#' @examples
90+
#' # Generating data for the example
91+
#' set.seed(223)
92+
#' dat <- rmultiAphylo(10, n = 5, P = 2)
93+
#' Nann(dat)
94+
#' Nannotated(dat)
95+
#' Ntrees(dat)
8996
NULL
9097

9198
#' @rdname aphylo-info

R/simulation.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ raphylo <- function(
359359
#' @details The `rmultiAphylo` function is a wrapper around `raphylo`.
360360
rmultiAphylo <- function(R, ...) {
361361

362-
do.call(c, replicate(n = R, raphylo(...), simplify = FALSE))
362+
ans <- vector("list", length = R)
363+
for (i in seq_len(R))
364+
ans[[i]] <- raphylo(...)
365+
do.call(c, ans)
363366

364367
}
365368

man/aphylo-info.Rd

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

0 commit comments

Comments
 (0)