Skip to content

Commit

Permalink
updated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Kain authored and Morgan Kain committed Mar 19, 2024
1 parent e8f63f5 commit 094aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_sequence_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ get_sequence_data <- function(

## Get the entries in specimen data which have raw sequence data
sequences.raw <- specimen_data %>%
dplyr::select(dplyr::contains(field), id, base_id) %>%
dplyr::select(dplyr::contains(field) & tidyselect::where(is.list), id, base_id) %>%
tidyr::pivot_longer(-c(id, base_id)) %>%
dplyr::mutate(value = lapply(value, FUN = function(x) ifelse(is.null(x), NA, x)) %>% unlist()) %>%
dplyr::filter(!is.na(value)) %>%
Expand Down

0 comments on commit 094aad9

Please sign in to comment.