Skip to content

Commit

Permalink
added missing step in the join function
Browse files Browse the repository at this point in the history
  • Loading branch information
nevrome committed Aug 1, 2020
1 parent c094492 commit 1a6088b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions R/dataprep_join_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ join_pandora_tables <- function(x) {
)
return_table <- "TAB_Sequencing"
}

if (all(c("TAB_Sequencing", "TAB_Raw_Data") %in% tabs)) {
x[["TAB_Raw_Data"]] <- dplyr::left_join(
x[["TAB_Sequencing"]],
x[["TAB_Raw_Data"]],
by = c("sequencing.Id" = "raw_data.Sequencing")
) %>%
dplyr::mutate(
raw_data.Sequencing = .data[["sequencing.Id"]]
)
return_table <- "TAB_Raw_Data"
}

return(x[[return_table]])
}

Expand Down

0 comments on commit 1a6088b

Please sign in to comment.