Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark committed Jun 20, 2024
1 parent 7c7ac87 commit 9a1521e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ export(get_sce_obj)
export(get_seurat_obj)
export(get_seurat_v5_obj)
export(get_spe_obj)
export(giotto_to_spe)
export(obj_list)
export(sce_to_anndata_zarr)
export(seurat_to_sce)
export(seurat_to_spe)
export(spe_to_anndata_zarr)
export(spe_to_ome_zarr)
import(Seurat)
Expand Down
1 change: 1 addition & 0 deletions R/giotto_to_bioc.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#' @export
giotto_to_spe <- function(gio) {
return(GiottoClass::giottoToSpatialExperiment(gio))
}
2 changes: 2 additions & 0 deletions R/seurat_to_bioc.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#' @export
seurat_to_sce <- function(seu) {
sce <- Seurat::as.SingleCellExperiment(seu)
return(sce)
}

#' @export
seurat_to_spe <- function(seu, sample_id = NA, img_id = NA) {
# Reference: https://github.com/drighelli/SpatialExperiment/issues/115
sce <- seurat_to_sce(seu)
Expand Down

0 comments on commit 9a1521e

Please sign in to comment.