Skip to content

Commit

Permalink
make sure that assay meta.data ends up in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Oct 24, 2024
1 parent e7f2be2 commit 46d8672
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/Seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ to_Seurat <- function(
)

# trackstatus: class=Seurat, feature=get_var, status=done
assay <- obj@assays[[assay_name]]
if (!is.null(var)) {
assay <- SeuratObject::AddMetaData(assay, metadata = adata$var)
obj@assays[[assay_name]] <- SeuratObject::AddMetaData(
obj@assays[[assay_name]],
metadata = adata$var
)
}

# make sure obs and var names are set properly
Expand Down

0 comments on commit 46d8672

Please sign in to comment.