Skip to content

Commit

Permalink
rebase master
Browse files Browse the repository at this point in the history
Merge branch 'master' into deprecate-default-DE-method

Conflicts:
	vignettes/introduction.Rmd
  • Loading branch information
stemangiola committed Mar 3, 2023
2 parents 9ebeea2 + 279b53c commit 2c757ca
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 66 deletions.
12 changes: 11 additions & 1 deletion R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,17 @@ setGeneric("as_SummarizedExperiment", function(.data,
pivot_longer( cols=-c(!!feature__$symbol,!!sample__$symbol), names_to="assay", values_to= ".a") %>%
nest(`data` = -`assay`) %>%
mutate(`data` = `data` %>% map(
~ .x %>% spread(!!sample__$symbol, .a) %>% as_matrix(rownames = feature__$name)
~ .x %>%
spread(!!sample__$symbol, .a) %>%

# arrange sample
select(!!feature__$symbol, rownames(colData)) |>

# Arrange symbol
arrange(!!feature__$symbol) |>

# Convert
as_matrix(rownames = feature__$name)
))

# Build the object
Expand Down
Loading

0 comments on commit 2c757ca

Please sign in to comment.