Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausVigo committed Oct 19, 2024
1 parent 31e2709 commit b97654b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/ancestral.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ anc_pml <- function(object, type = "marginal", ...) {
#' align <- read.phyDat("ancestral_align.fasta", format="fasta")
#' tree <- read.tree("ancestral_tree.nwk")
#' df <- read.table("ancestral.state", header=TRUE)
#' anc_ml_disc <- as.ancestral(tree, align, df)
#' anc_ml_disc <- as.ancestral(tree, df, align)
#' plotAnc(anc_ml_disc, 20)
#' unlink(c("ancestral_align.fasta", "ancestral_tree.nwk", "ancestral.state"))
#' @rdname write.ancestral
Expand Down
2 changes: 1 addition & 1 deletion inst/tinytest/test_ancestral.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ write.ancestral(anc_ml)
align <- read.phyDat("ancestral_align.fasta", format = "fasta")
tree <- read.tree("ancestral_tree.nwk")
df <- read.table("ancestral.state", header=TRUE)
anc_ml_disc <- as.ancestral(tree, align, df)
anc_ml_disc <- as.ancestral(tree, df, align)
expect_equal(anc_ml$tree, anc_ml_disc$tree)
expect_equal(anc_ml$data[tree$tip.label], anc_ml_disc$data)
#expect_equal(anc_ml[[3]], anc_ml_disc[[3]])
Expand Down

0 comments on commit b97654b

Please sign in to comment.