Skip to content

Commit

Permalink
update mpa tree script
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgamboa committed Sep 6, 2023
1 parent f983a0b commit a6bfb25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inst/scripts/mpa_tree_v31.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ names(tip_labels) <- new_mpa_data$old_tip_label
new_mpa_tree <- keep.tip(phy = mpa_tree, tip = names(tip_labels))
new_tip_labels <- unname(tip_labels[new_mpa_tree$tip.label])
new_mpa_tree$tip.label <- new_tip_labels
new_mpa_data <- new_mpa_data |>
arrange(match(tip_label, new_tip_labels))
new_mpa_data <- new_mpa_data[match(new_mpa_tree$tip.label, new_mpa_data$tip_label),]

# all(new_mpa_data$tip_label == new_mpa_tree$tip.label)




# new_mpa_data2 <- new_mpa_data |>
# drop_na()
Expand Down

0 comments on commit a6bfb25

Please sign in to comment.