Skip to content

Commit

Permalink
Fix gene signature querying
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Nov 16, 2021
1 parent a21a668 commit 6256500
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/query_value.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ query_pancan_value <- function(molecule,
message("IDs include ", paste(ids, collapse = ", "))
tryCatch(
{
values <- purrr::map(ids, ~ query_value(., data_type, database, ...))
values <- lapply(ids, function(x) {
query_value(x, data_type, database, ...)
})
#values <- purrr::map(ids, ~ query_value(., data_type, database, ...))
unit <- if (is.list(values[[1]]) && length(values[[1]]) > 1) values[[1]][[2]] else NULL
if (is.null(unit)) {
df <- as.data.frame(values %>% purrr::set_names(ids))
Expand Down

0 comments on commit 6256500

Please sign in to comment.