Skip to content

Commit

Permalink
update tip_data and update ltp3 function for including a character ve…
Browse files Browse the repository at this point in the history
…ctor with all named nodes
  • Loading branch information
sdgamboa committed Dec 8, 2023
1 parent 69f18bb commit 0254a9c
Show file tree
Hide file tree
Showing 3 changed files with 19,801 additions and 19,808 deletions.
23 changes: 8 additions & 15 deletions R/trees.R
Original file line number Diff line number Diff line change
Expand Up @@ -235,23 +235,16 @@ ltp3 <- function() {
purrr::modify(as.character) |>
as.data.frame()

genus_tips <- grep('g__', tip_data$tip_label, value = TRUE)
gn_tips <- grep('g__', tip_data$tip_label, value = TRUE)

all_nodes <- c(
tree$tip.label,
grep('^n\\d(\\+\\d)*',tree$node.label, value = TRUE, invert = TRUE)
) |>
{\(y) y[y != 'NA']}()

list(
tree = tree, tip_data = tip_data, node_data = node_data,
genus_tips = genus_tips
gn_tips = gn_tips, all_nodes = all_nodes
)
}













Loading

0 comments on commit 0254a9c

Please sign in to comment.