Skip to content

Commit

Permalink
Avoid type mismatch when there are no taxonomic matches.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanf committed Feb 8, 2019
1 parent 6ba78b2 commit c210567
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/funguildr.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ funguild_assign <- function (otu_table, db = get_funguild_db()) {
dplyr::arrange(dplyr::desc(taxonomicLevel)) %>%
dplyr::summarize_at("searchkey", dplyr::first) %>%
dplyr::ungroup() %>%
dplyr::mutate_all(as.character) %>%
dplyr::left_join(otu_table, ., by = "taxkey") %>%
dplyr::left_join(db, by = "searchkey", suffix = c("", ".funguild")) %>%
dplyr::select(-taxkey, -searchkey)
Expand Down

0 comments on commit c210567

Please sign in to comment.