Skip to content

Commit

Permalink
Find the reason why #234 does not work and fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Dec 13, 2021
1 parent 2830186 commit 8dd4484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# UCSCXenaShiny 1.1.4

- Fixed the colnames being changed by `as.data.frame()` when querying a symbol with unvalid R name. (Related to #234)
- Added more informative error for scatter plot in General Analysis tab. (#233)
- Reversed default color setting for groups in survival analysis to fit conventional color grouping (in Xena).
(#232, thanks to feedback from [Enrique](https://github.com/quiquemedina))
Expand Down
2 changes: 2 additions & 0 deletions R/query_value.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ query_molecule_value <- function(dataset, molecule, host = NULL) {
{
values <- purrr::map(ids, ~ get_data(dataset, ., host = host))
df <- as.data.frame(values %>% purrr::set_names(ids))
colnames(df) <- ids
sig_values <- eval(fm, envir = df)
names(sig_values) <- rownames(df)
0L
Expand Down Expand Up @@ -116,6 +117,7 @@ query_pancan_value <- function(molecule,
} else {
df <- as.data.frame(purrr::map(values, ~ .[[1]]) %>% purrr::set_names(ids))
}
colnames(df) <- ids
sig_values <- eval(fm, envir = df)
names(sig_values) <- rownames(df)
0L
Expand Down

0 comments on commit 8dd4484

Please sign in to comment.