Skip to content

Commit

Permalink
update phytools article
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgamboa committed Sep 21, 2023
1 parent ea8e9d0 commit b107266
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions inst/scripts/phagorn.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ system.time(
)


system.time(
{
## This one takes too long
fit <- pml(mpa_tree, myData)
fit <- optim.pml(fit, model = NULL, control = pml.control(trace=0))
}
)

anc_pars_data <- vector('list', length(anc_pars))
for (i in seq_along(anc_pars_data)) {
anc_pars_data[[i]] <- as.data.frame(unname(anc_pars[[i]]))
Expand Down
4 changes: 2 additions & 2 deletions vignettes/articles/phytools.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ mean(names(phys_data_list) %in% get_all_nodes)
How many tips included in the mpa tree

```{r}
mpa_tip_data <- ltp(x = 'tips') |>
mpa_tip_data <- mpa(x = 'tips') |>
modify(as.character) |>
as_tibble()
mean(mpa_tip_data$taxid %in% sub('^\\w__', '', phys_data_ready$NCBI_ID))
Expand Down Expand Up @@ -305,7 +305,7 @@ table(tip$Evidence)


```{r}
mpa_tree <- ltp()
mpa_tree <- mpa()
m1 <- tip |>
select(tip_label, Attribute, Score) |>
filter(!is.na(Attribute)) |>
Expand Down

0 comments on commit b107266

Please sign in to comment.