Skip to content

Commit c798f5b

Browse files
authored
Merge pull request #78 from csoneson/bugfix-nonmatching-dimnames
Bugfix nonmatching dimnames
2 parents 4632dd4 + 59f6893 commit c798f5b

File tree

5 files changed

+1033
-700
lines changed

5 files changed

+1033
-700
lines changed

R/dplyr_methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ pull.SummarizedExperiment <- function(.data, var=-1, name=NULL, ...) {
14171417
warning(
14181418
"tidySummarizedExperiment says: the assays in your SummarizedExperiment have column names,
14191419
but their order is not the same. Pulling assays can return data in a order you don't expect.
1420-
To avoid unwanted behaviour it is highly reccomended to have assays with the same order of colnames and rownames"
1420+
To avoid unwanted behaviour it is highly recommended to have assays with the same order of colnames and rownames"
14211421
)
14221422

14231423
# reorder assay colnames before printing

R/tibble_methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ as_tibble.SummarizedExperiment <- function(x, ...,
8888

8989
# If I want to return all columns
9090
count_info %>%
91-
inner_join(sample_info, by=s_(x)$name) %>%
92-
inner_join(gene_info, by=f_(x)$name) %>%
91+
full_join(sample_info, by=s_(x)$name) %>%
92+
full_join(gene_info, by=f_(x)$name) %>%
9393
when(nrow(range_info) > 0 ~ (.) %>% left_join(range_info) %>% suppressMessages(), ~ (.))
9494

9595
# This function outputs a tibble after subsetting the columns

0 commit comments

Comments
 (0)