Skip to content

Commit

Permalink
rename fields in combine_bigmaps to match change in dadamap
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanf committed Nov 17, 2019
1 parent ce91d68 commit b078562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/tzara.R
Expand Up @@ -1007,11 +1007,11 @@ combine_bigmaps <- function(dadamap, rawdata) {
joincols <- intersect(colnames(dadamap), colnames(rawdata))
dplyr::full_join(dadamap, rawdata, by = joincols) %>%
dplyr::group_by("seq.id") %>%
dplyr::filter(any(!is.na(.data$asv.idx))) %>%
dplyr::filter(any(!is.na(.data$dada.idx))) %>%
dplyr::mutate(
seq = dplyr::coalesce(.data$asv.seq, .data$derep.seq, .data$seq)
seq = dplyr::coalesce(.data$dada.seq, .data$derep.seq, .data$seq)
) %>%
dplyr::select(-"derep.seq", -"derep.idx", -"asv.seq", -"asv.idx")
dplyr::select(-"derep.seq", -"derep.idx", -"dada.seq", -"dada.idx")
}

is_string_or_missing <- function(x) {
Expand Down

0 comments on commit b078562

Please sign in to comment.