Skip to content

Commit

Permalink
Add note about exluding genus data from node_data when importing with…
Browse files Browse the repository at this point in the history
… the ltp function.
  • Loading branch information
sdgamboa committed Dec 28, 2023
1 parent 3666b61 commit c04c7d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inst/scripts/get_living_tree_2023.R
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ node_data_extended$node <- match(node_data$node_label, tree_extended$node.label)
sum(tree_extended$node.label[node_data_extended$node - Ntip(tree_extended)] == 'NA')
tree_extended$node.label[23504 - Ntip(tree_extended)] == '2157'

## note that node_data_extended, only contains data about genera with
## two or more tips, i.e. I could get a MRCA. The rest are only tips.
## It's probably better to filter out genera from node_data when
## importing with the ltp function and use only the tips for managing
## genus information.

# Export data -------------------------------------------------------------
tree_fname <- file.path('inst', 'extdata', 'LTP_all_08_2023.newick')
# ape::write.tree(tree, tree_fname)
Expand Down

0 comments on commit c04c7d3

Please sign in to comment.