Skip to content

Commit

Permalink
put default assay to first
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhanH committed Aug 5, 2021
1 parent 01b9599 commit 6287d8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,9 @@ as.SingleCellExperiment.Seurat <- function(x, assay = NULL, ...) {
if (!all(assay %in% Assays(object = x))) {
stop("One or more of the assays you are trying to convert is not in the Seurat object")
}
if (DefaultAssay(object = x) %in% assay) {
assay <- union(DefaultAssay(object = x), assay)
}
experiments <- list()
for (assayn in assay) {
assays <- list(
Expand Down

0 comments on commit 6287d8a

Please sign in to comment.